Fixed a bug with days not having a defined next-highest unit, which caused
day values to incorrectly always display as 0. I'm surprised nobody else noticed this, it's right there on the blockade panel. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3372 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -126,6 +126,7 @@ public class TimeUtil
|
|||||||
case MILLISECOND: return 1000;
|
case MILLISECOND: return 1000;
|
||||||
case SECOND: case MINUTE: return 60;
|
case SECOND: case MINUTE: return 60;
|
||||||
case HOUR: return 24;
|
case HOUR: return 24;
|
||||||
|
case DAY: return Integer.MAX_VALUE;
|
||||||
default: return -1;
|
default: return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user