diff options
| author | David Delarosa <xdavidel@gmail.com> | 2022-05-25 18:13:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-25 15:13:38 +0000 |
| commit | d283f12ef9c524a88550097bceda029b3eb9a71c (patch) | |
| tree | 12cbd2473126adf077b587edd4fec57e2cc14ffa /.local | |
| parent | f70612800b1974f2ec09002f30a6710a2fde2183 (diff) | |
| download | eibhear-d283f12ef9c524a88550097bceda029b3eb9a71c.tar.gz eibhear-d283f12ef9c524a88550097bceda029b3eb9a71c.tar.zst eibhear-d283f12ef9c524a88550097bceda029b3eb9a71c.zip | |
Use tmpfs for speed and I/O reduction (#1122)
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/statusbar/sb-nettraf | 2 |
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 )) |
