Browse Source

Update the other use of !%s to match the last commit.

master
onefang 1 year ago
parent
commit
8f09a59744
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      apt-panopticon-update-data.lua

+ 3
- 3
apt-panopticon-update-data.lua View File

@@ -9,7 +9,7 @@ local E = APT.E
local C = APT.C
local arg, sendArgs = APT.parseArgs({...})

local oldest = os.date('!%s') - (60 * 60)
local oldest = os.date('%s') - (60 * 60)


local lock = 'apt-panopticon.lock'
@@ -22,7 +22,7 @@ local files = io.popen('ls -1 results_*/results_*.tar.xz 2>/dev/null; ls -1 resu
for l in files:lines() do
local lsub = l:sub(1, -8)

local dt = os.date('!%s', os.time{year = l:sub(-23, -20), month = l:sub(-18, -17), day = l:sub(-15, -14), hour = l:sub(-12, -11), min = l:sub(-9, -8)}) - (60 * 60)
local dt = os.date('%s', os.time{year = l:sub(-23, -20), month = l:sub(-18, -17), day = l:sub(-15, -14), hour = l:sub(-12, -11), min = l:sub(-9, -8)}) - (60 * 60)
if dt < oldest then oldest = dt; print('\nOldest time is ' .. oldest) end

if -1 < APT.verbosity then io.stdout:write('\r' .. 'tar -xf ' .. l); io.stdout:flush() end
@@ -102,7 +102,7 @@ local files = io.popen('ls -d1 results_*')
for l in files:lines() do
if ('results_old' ~= l) and ('.tar.xz' ~= l:sub(25, -1)) then
if APT.checkFile(l .. '/stamp') then
APT.now = os.date('!%s', os.time{year = l:sub(9, 12), month = l:sub(14, 15), day = l:sub(17, 18), hour = l:sub(20, 21), min = l:sub(23, 24)})
APT.now = os.date('%s', os.time{year = l:sub(9, 12), month = l:sub(14, 15), day = l:sub(17, 18), hour = l:sub(20, 21), min = l:sub(23, 24)})
if 0 ~= APT.now then
if APT.checkFile(l .. '/mirrors.lua') then
if -1 < APT.verbosity then io.stdout:write('\r' .. l .. ' -> ' .. APT.now); io.stdout:flush() end


Loading…
Cancel
Save