Fix abnormal energy status output
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 31 Jul 2018 19:37:18 +0000 (15:37 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 31 Jul 2018 19:37:18 +0000 (15:37 -0400)
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.02741 seconds and 4 git commands to generate.