formatDuration tweak

This commit is contained in:
zzz
2009-08-01 17:22:57 +00:00
parent e1a5d5e19a
commit a14ad423a6

View File

@ -871,7 +871,7 @@ public class DataHelper {
public static String formatDuration(long ms) { public static String formatDuration(long ms) {
if (ms < 5 * 1000) { if (ms < 5 * 1000) {
return ms + "ms"; return ms + "ms";
} else if (ms < 5 * 60 * 1000) { } else if (ms < 3 * 60 * 1000) {
return (ms / 1000) + "s"; return (ms / 1000) + "s";
} else if (ms < 120 * 60 * 1000) { } else if (ms < 120 * 60 * 1000) {
return (ms / (60 * 1000)) + "m"; return (ms / (60 * 1000)) + "m";