Less cache time for checkupdates

This commit is contained in:
madmaurice 2015-06-08 09:24:22 +02:00
parent 3e2fc95f4e
commit 54cd343498

View file

@ -49,7 +49,7 @@ services() {
}
diskspace() {
info=$(df -h / | awk '{if($6 == "/") { print $5 }}')
info=$(./cmdcache.sh 10 "df -h /" | awk '{if($6 == "/") { print $5 }}')
echo -n "%{A:I "filesystem 30":}$icon_diskspace $info%{A}"
}
@ -62,7 +62,7 @@ wifi() {
}
battery() {
level=$(acpi -b | awk -F, 'BEGIN { s=0 } { s+=$2 } END { print int(s/NR) }')
level=$(./cmdcache.sh 5 "acpi -b" | awk -F, 'BEGIN { s=0 } { s+=$2 } END { print int(s/NR) }')
charging=$(acpi -a | grep on-line)
icon=$icon_battery
@ -83,7 +83,7 @@ clock() {
}
updates() {
info=$(./cmdcache.sh 1200 checkupdates | wc -l)
info=$(./cmdcache.sh 20 checkupdates | wc -l)
echo -n "$icon_updates $info"
}