From 8893e0cf5b521980e2867b0d9f37c710dfc57bf8 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 14:59:02 +1000 Subject: Nice the tar. --- apt-panopticon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 local fadt = io.popen("ls -dl results_old 2>/dev/null | cut -d '>' -f 2 | cut -d ' ' -f 2") local adt = fadt:read('*l') fadt:close() - if nil ~= adt then os.execute('tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end + if nil ~= adt then os.execute('ionice -c3 nice -n 19 tar -c --xz ' .. adt .. ' -f ' .. adt .. '.tar.xz &') end local dt = os.date('!%Y-%m-%d-%H-%M') local fodt = io.popen('TZ="GMT" date -r results/stamp +%Y-%m-%d-%H-%M 2>/dev/null', 'r') local odt = fodt:read('*l') -- cgit v1.1