Browse Source

fix:slow luci

rufengsuixing 5 years ago
parent
commit
0c2d6f2e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      luasrc/model/cbi/AdGuardHome/base.lua

+ 1 - 1
luasrc/model/cbi/AdGuardHome/base.lua

@@ -36,7 +36,7 @@ if not fs.access(binpath) then
 else
 	local version
 	local testtime=fs.stat(binpath,"mtime")
-	if testtime~=binmtime then
+	if testtime~=tonumber(binmtime) then
 		local tmp=luci.sys.exec("touch /var/run/AdGfakeconfig;"..binpath.." -c /var/run/AdGfakeconfig --check-config 2>&1| grep -m 1 -E 'v[0-9.]+' -o ;rm /var/run/AdGfakeconfig")
 		version=string.sub(tmp, 1, -2)
 		uci:set("AdGuardHome","AdGuardHome","version",version)