projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3904a01
)
Add missing number conversion (fixed #108)
author
Steven Barth
<steven@midlink.org>
Sun, 17 Aug 2008 14:37:53 +0000
(14:37 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 17 Aug 2008 14:37:53 +0000
(14:37 +0000)
modules/admin-core/luasrc/tools/webadmin.lua
patch
|
blob
|
history
diff --git
a/modules/admin-core/luasrc/tools/webadmin.lua
b/modules/admin-core/luasrc/tools/webadmin.lua
index 1fda11eeaf432c46c5e2d9752c0b370e4e315611..7f123ec4d16deba14758baeded61c64d4fef82af 100644
(file)
--- a/
modules/admin-core/luasrc/tools/webadmin.lua
+++ b/
modules/admin-core/luasrc/tools/webadmin.lua
@@
-34,6
+34,8
@@
function date_format(secs)
local mins = 0
local hour = 0
local days = 0
+
+ secs = math.floor(tonumber(secs))
if secs > 60 then
mins = math.floor(secs / 60)
secs = secs % 60