openbsd-ports/x11/spectrwm/patches/patch-baraction_sh
2021-01-24 15:41:37 +00:00

15 lines
376 B
Plaintext

$OpenBSD: patch-baraction_sh,v 1.1 2021/01/24 15:41:38 mglocker Exp $
Index: baraction.sh
--- baraction.sh.orig
+++ baraction.sh
@@ -84,7 +84,7 @@ print_bat() {
APM_DATA=""
I=0
while :; do
- IOSTAT_DATA=`/usr/sbin/iostat -C | grep '[0-9]$'`
+ IOSTAT_DATA=`/usr/sbin/iostat -C -c 2 | tail -n 1 | grep '[0-9]$'`
if [ $I -eq 0 ]; then
APM_DATA=`/usr/sbin/apm -alb`
fi