From: Siraaj Khandkar Date: Thu, 16 Aug 2018 17:03:35 +0000 (-0400) Subject: Pass ttl explicitly X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=9c10bd399c93b58d5b7f8d5eda380b27cdb6e81b;p=khatus.git Pass ttl explicitly --- diff --git a/bin/khatus_bar b/bin/khatus_bar index bddf0b9..d62f5d5 100755 --- a/bin/khatus_bar +++ b/bin/khatus_bar @@ -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 = "<"