mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 04:22:40 +00:00
formatDuration tweak
This commit is contained in:
1 parent
e1a5d5e19a
commit
a14ad423a6
1 file changed
+1
-1
@@ -871,7 +871,7 @@ public class DataHelper {
|
||||
public static String formatDuration(long ms) {
|
||||
if (ms < 5 * 1000) {
|
||||
return ms + "ms";
|
||||
} else if (ms < 5 * 60 * 1000) {
|
||||
} else if (ms < 3 * 60 * 1000) {
|
||||
return (ms / 1000) + "s";
|
||||
} else if (ms < 120 * 60 * 1000) {
|
||||
return (ms / (60 * 1000)) + "m";
|
||||
|
||||
Reference in new issue
Block a user