Pass ttl explicitly
authorSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 17:03:35 +0000 (13:03 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 16 Aug 2018 17:03:35 +0000 (13:03 -0400)
bin/khatus_bar

index bddf0b9..d62f5d5 100755 (executable)
@@ -115,8 +115,8 @@ function make_status_bar(    position, bar, sep, i, j) {
 }
 
 function make_status_energy(    state, charge, direction_of_change) {
-    state  = Data_get("khatus_sensor_energy", "battery_state")
-    charge = Data_get("khatus_sensor_energy", "battery_percentage")
+    state  = Data_get("khatus_sensor_energy", "battery_state"     , 0)
+    charge = Data_get("khatus_sensor_energy", "battery_percentage", 0)
 
     if (state == "discharging") {
         direction_of_change = "<"
This page took 0.024985 seconds and 4 git commands to generate.