mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 06:15:13 +08:00
🌴 Sync 2026-07-08 20:36:07
This commit is contained in:
1 parent
6dda8a8707
commit
7fafcddf49
28 files changed
+839
-198
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