mirror of https://github.com/shunfei/cronsun
修复bug
parent
cadce449d5
commit
35c3e1ae4d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,7 @@ var formatDuration = function(beginTime, endTime){
|
||||||
if (sec >= 1) s += sec.toString() + ' 秒 ';
|
if (sec >= 1) s += sec.toString() + ' 秒 ';
|
||||||
|
|
||||||
d = d%1000;
|
d = d%1000;
|
||||||
if (d >= 1) s = d.toString() + ' 毫秒';
|
if (d >= 1) s += d.toString() + ' 毫秒';
|
||||||
|
|
||||||
if (s.length == 0) s = "0 毫秒";
|
if (s.length == 0) s = "0 毫秒";
|
||||||
return s;
|
return s;
|
||||||
|
|
Loading…
Reference in New Issue