From: Steven Barth Date: Sun, 1 Jun 2008 17:22:21 +0000 (+0000) Subject: * Added timing fix X-Git-Tag: 0.8.0~935 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c73afe8b25378af675081dd76d0ecf5903586139;p=oweals%2Fluci.git * Added timing fix --- diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index c7e1ed6fe..ce3de3232 100644 --- 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={}}