Less cache time for checkupdates
This commit is contained in:
parent
3e2fc95f4e
commit
54cd343498
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ services() {
|
||||||
}
|
}
|
||||||
|
|
||||||
diskspace() {
|
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}"
|
echo -n "%{A:I "filesystem 30":}$icon_diskspace $info%{A}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ wifi() {
|
||||||
}
|
}
|
||||||
|
|
||||||
battery() {
|
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)
|
charging=$(acpi -a | grep on-line)
|
||||||
|
|
||||||
icon=$icon_battery
|
icon=$icon_battery
|
||||||
|
@ -83,7 +83,7 @@ clock() {
|
||||||
}
|
}
|
||||||
|
|
||||||
updates() {
|
updates() {
|
||||||
info=$(./cmdcache.sh 1200 checkupdates | wc -l)
|
info=$(./cmdcache.sh 20 checkupdates | wc -l)
|
||||||
echo -n "$icon_updates $info"
|
echo -n "$icon_updates $info"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue