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:
8cce07d
)
* Added timing fix
author
Steven Barth
<steven@midlink.org>
Sun, 1 Jun 2008 17:22:21 +0000
(17:22 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 1 Jun 2008 17:22:21 +0000
(17:22 +0000)
libs/web/luasrc/dispatcher.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/dispatcher.lua
b/libs/web/luasrc/dispatcher.lua
index c7e1ed6fe2b4a6d30f64a563680ac7ac4c29bb46..ce3de32326e020ef5c6df292f3518678e4fed94e 100644
(file)
--- a/
libs/web/luasrc/dispatcher.lua
+++ b/
libs/web/luasrc/dispatcher.lua
@@
-28,6
+28,11
@@
require("luci.http")
require("luci.sys")
require("luci.fs")
+-- Dirty OpenWRT fix
+if (os.time() < luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua")) then
+ os.execute('date -s '..os.date('%m%d%H%M%Y', luci.fs.mtime(luci.sys.libpath() .. "/dispatcher.lua")))
+end
+
-- Local dispatch database
local tree = {nodes={}}