Fix abnormal energy status output
[khatus.git] / bin / khatus_controller
index d591fe8..d75281e 100755 (executable)
@@ -284,7 +284,7 @@ function make_status_energy(    state, direction_of_change) {
     } else {
         direction_of_change = "="
     };
-    printf("E%s%s%%", direction_of_change, db["energy_percentage"])
+    return sprintf("E%s%s%%", direction_of_change, db["energy_percentage"])
 }
 
 function make_status_mem(    total, used, percent, status) {
This page took 0.023593 seconds and 4 git commands to generate.