diff options
author | David <dbphillipsnz@gmail.com> | 2014-03-27 21:30:34 +1300 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-03-27 21:30:34 +1300 |
commit | ed92dbbd8f3537326e10ed8c2585df6302fed853 (patch) | |
tree | 91edcfaebc7ff9ce3a82ef70c80e51838270f95f /src/getbat.c | |
parent | 10e92d96f03d035e9a4e95aa22eb22367024789b (diff) | |
download | paramano-ed92dbbd8f3537326e10ed8c2585df6302fed853.tar.xz |
FPE fixes
Diffstat (limited to 'src/getbat.c')
-rw-r--r-- | src/getbat.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/getbat.c b/src/getbat.c index 363e725..ad3a760 100644 --- a/src/getbat.c +++ b/src/getbat.c @@ -174,14 +174,6 @@ gint gb_low_capacity() gint gb_percent() { return get_int_value_from_file(CHARGE_VALUE_PATH); - /* - int percent, max_capacity; - if ( (max_capacity = gb_max_capacity()) == 0 ) - return 0; - percent = (gb_current_capacity() * 100) / max_capacity; - if (percent > 100) - percent = 100; - return percent;*/ } /* void gb_time(gchar* time) |