summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-06-09 15:24:00 -0400
committerLuke Smith <luke@lukesmith.xyz>2022-06-09 15:24:00 -0400
commite02041660351a78d3a227b0e9ce1edd0beed9ec8 (patch)
tree0e0faf1dce3be6a188c62c94a89fc07dee68b834 /.local/bin/statusbar
parent15b4de6cf2e1a4a0878a6d5b8b33ceb31d073fa2 (diff)
parentd283f12ef9c524a88550097bceda029b3eb9a71c (diff)
downloadeibhear-e02041660351a78d3a227b0e9ce1edd0beed9ec8.tar.gz
eibhear-e02041660351a78d3a227b0e9ce1edd0beed9ec8.tar.zst
eibhear-e02041660351a78d3a227b0e9ce1edd0beed9ec8.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x.local/bin/statusbar/sb-nettraf2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-nettraf b/.local/bin/statusbar/sb-nettraf
index c71d38e..178f677 100755
--- a/.local/bin/statusbar/sb-nettraf
+++ b/.local/bin/statusbar/sb-nettraf
@@ -17,7 +17,7 @@ update() {
read -r i < "$arg"
sum=$(( sum + i ))
done
- cache=${XDG_CACHE_HOME:-$HOME/.cache}/${1##*/}
+ cache=/tmp/${1##*/}
[ -f "$cache" ] && read -r old < "$cache" || old=0
printf %d\\n "$sum" > "$cache"
printf %d\\n $(( sum - old ))