js: fix formatTime

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-12-04 11:42:55 +08:00
parent d7e8883f28
commit 00da10fa55
+4 -4
View File
@@ -66,17 +66,17 @@ export default {
let th = 0;
let tm = 0;
if (ts > 60) {
if (ts > 59) {
tm = Math.floor(ts / 60);
ts = (ts % 60);
}
if (tm > 60) {
if (tm > 59) {
th = Math.floor(tm / 60);
tm = (tm % 60);
}
if (th > 24) {
if (th > 23) {
td = Math.floor(th / 24);
th = (th % 24);
}
@@ -345,4 +345,4 @@ export default {
.terminal {
height: 100%;
}
</style>
</style>