[gnome-battery-bench] gbb monitor: remove check to print capacity



commit 31f80d01e6ff3cfa4b94d3467c13efa637b792f1
Author: Christian Kellner <gicmo gnome org>
Date:   Tue May 2 23:25:11 2017 +0200

    gbb monitor: remove check to print capacity
    
    We really support "energy" properly, so no need to pretend to
    do for "capacity".

 src/commandline.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/commandline.c b/src/commandline.c
index c629b8d..3f1142a 100644
--- a/src/commandline.c
+++ b/src/commandline.c
@@ -184,8 +184,6 @@ on_power_monitor_changed(GbbPowerMonitor *monitor,
     g_print("AC: %s\n", state->online ? "online" : "offline");
     if (state->energy_now >= 0)
         g_print("Energy: %.2f WH (%.2f%%)\n", state->energy_now, gbb_power_state_get_percent(state));
-    else if (state->capacity_now >= 0)
-        g_print("Capacity: %.2f%%\n", gbb_power_state_get_percent(state));
 
     if (runner != NULL) {
         GbbTestRun *run = gbb_test_runner_get_run(runner);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]