1. Tim Heap
  2. .dot-files

Commits

Tim Heap  committed 24e677e

tmux: Calculate battery draw properly

  • Participants
  • Parent commits fbb5e50
  • Branches master

Comments (0)

Files changed (1)

File tmux.d/battery.sh

View file
  • Ignore whitespace
 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 ''