diff options
-rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index b6314a44..e431adfd 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -807,7 +807,7 @@ local function http_request(url, filename, http, cache) | |||
807 | local timestamp = read_timestamp(filename..".timestamp") | 807 | local timestamp = read_timestamp(filename..".timestamp") |
808 | if status or timestamp then | 808 | if status or timestamp then |
809 | local unixtime = read_timestamp(filename..".unixtime") | 809 | local unixtime = read_timestamp(filename..".unixtime") |
810 | if unixtime then | 810 | if tonumber(unixtime) then |
811 | local diff = os.time() - tonumber(unixtime) | 811 | local diff = os.time() - tonumber(unixtime) |
812 | if status then | 812 | if status then |
813 | if diff < cfg.cache_fail_timeout then | 813 | if diff < cfg.cache_fail_timeout then |