Merge pull request #52 from scottjasso/patch-1

Fix disk_io notification bug
This commit is contained in:
Dustin Kirkland 2023-11-22 23:03:39 -06:00 committed by GitHub
commit b3a9041eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ __disk_io() {
if [ $t2 -le $t1 ]; then
rate=0
else
[ -r "$cache" ] && read x1 < "$cache" || x1=0
[ -r "$cache" ] && read x1 < "$cache"
local a1= a2= a3= a4= a5= a6= a7= a8= a9= a10=
read a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 other < "/sys/block/$disk/stat"
if [ "$i" = "read" ]; then