aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2019-12-24 14:59:02 +1000
committeronefang2019-12-24 14:59:02 +1000
commit8893e0cf5b521980e2867b0d9f37c710dfc57bf8 (patch)
tree2c72c565d78b2210213e3a58386f434ab6dc415c
parentWait for things to start up before checking for them. (diff)
downloadapt-panopticon-8893e0cf5b521980e2867b0d9f37c710dfc57bf8.zip
apt-panopticon-8893e0cf5b521980e2867b0d9f37c710dfc57bf8.tar.gz
apt-panopticon-8893e0cf5b521980e2867b0d9f37c710dfc57bf8.tar.bz2
apt-panopticon-8893e0cf5b521980e2867b0d9f37c710dfc57bf8.tar.xz
Nice the tar.
Diffstat (limited to '')
-rwxr-xr-xapt-panopticon.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-panopticon.lua b/apt-panopticon.lua
index d6227ec..ce44503 100755
--- a/apt-panopticon.lua
+++ b/apt-panopticon.lua
@@ -978,7 +978,7 @@ else
978 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") 978 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2")
979 local adt = fadt:read('*l') 979 local adt = fadt:read('*l')
980 fadt:close() 980 fadt:close()
981 if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end 981 if nil ~= adt then os.execute('ionice -c3 nice -n 19 tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end
982 local dt = os.date('!%Y-%m-%d-%H-%M') 982 local dt = os.date('!%Y-%m-%d-%H-%M')
983 local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') 983 local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r')
984 local odt = fodt:read('*l') 984 local odt = fodt:read('*l')