diff options
-rwxr-xr-x | avg_batt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,4 +1,4 @@ #!/bin/sh -echo "$(acpi | cut -d' ' -f4|sed 's|%||'|avg|round 0)%" +echo "$(acpi | cut -d ' ' -f 4 | sed 's|[%,]||g' | awk '{ total += $1; count++ } END { print total/count }')%" |