整理代码,改正时间字符串格式少删个字母

This commit is contained in:
MrZ626
2021-03-18 20:54:35 +08:00
parent 73a1b860d5
commit e82c6322a0
2 changed files with 2 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
local int,format=math.floor,string.format
return function(s)
if s<60 then
return format("%.3fs\"",s)
return format("%.3f\"",s)
elseif s<3600 then
return format("%d'%05.2f\"",int(s/60),s%60)
else