mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-17 13:43:01 +08:00
update 2026-07-08 18:11:50
This commit is contained in:
1 parent
f21db3bfeb
commit
3cce89d35f
1959 files changed
+1523154
-15
No files matched your search
@@ -1447,7 +1447,7 @@ function get_std_domain(domain)
|
||||
return domain
|
||||
end
|
||||
|
||||
function format_go_time(input)
|
||||
function format_go_time(input, default)
|
||||
input = input and trim(input)
|
||||
local N = 0
|
||||
if input and input:match("^%d+$") then
|
||||
@@ -1465,7 +1465,7 @@ function format_go_time(input)
|
||||
end
|
||||
end
|
||||
if N <= 0 then
|
||||
return "0s"
|
||||
return default or "0s"
|
||||
end
|
||||
local result = ""
|
||||
local h = math.floor(N / 3600)
|
||||
|
||||
Reference in new issue
Block a user