forked from I2P_Developers/i2p.i2p
add red clock
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 593 B |
BIN
apps/i2psnark/_icons/clock_red.png
Normal file
BIN
apps/i2psnark/_icons/clock_red.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 889 B |
@@ -1426,8 +1426,14 @@ public class I2PSnarkServlet extends Default {
|
||||
complete = true;
|
||||
status = toImg("tick") + _("Complete");
|
||||
} else {
|
||||
status =
|
||||
(snark.storage.getPriority(f.getCanonicalPath()) < 0 ? toImg("cancel") : toImg("clock")) +
|
||||
int priority = snark.storage.getPriority(f.getCanonicalPath());
|
||||
if (priority < 0)
|
||||
status = toImg("cancel");
|
||||
else if (priority == 0)
|
||||
status = toImg("clock");
|
||||
else
|
||||
status = toImg("clock_red");
|
||||
status +=
|
||||
(100 * (length - remaining) / length) + "% " + _("complete") +
|
||||
" (" + DataHelper.formatSize2(remaining) + _("bytes remaining") + ")";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user