Commits

Tim Heap committed 24e677e

tmux: Calculate battery draw properly

Comments (0)

Files changed (1)

tmux.d/battery.sh

 echo -n "${BASE_COLOUR} "
 
 POWER_NOW=`cat "$BAT_PATH/power_now"`
-echo -n "$(( $POWER_NOW / (1024 ** 2) ))W "
+echo -n "$(( $POWER_NOW / (1000 ** 2) ))W "
 
 echo ''