File gnome-power-manager-bnc479704-fix-discharge-tooltip.patch of Package gnome-power-manager
Index: gnome-power-manager-2.24.1/src/gpm-engine.c
===================================================================
--- gnome-power-manager-2.24.1.orig/src/gpm-engine.c
+++ gnome-power-manager-2.24.1/src/gpm-engine.c
@@ -299,7 +299,7 @@ gpm_engine_get_summary (GpmEngine *engin
/* if we have limited accuracy, add this to the tooltip */
unit = gpm_cell_array_get_unit (collection->primary);
accuracy = gpm_profile_get_accuracy_average (engine->priv->profile,
- unit->is_discharging);
+ unit->is_discharging) * 100;
if (unit->is_present) {
if (accuracy == 0) {
Index: gnome-power-manager-2.24.1/src/gpm-cell-array.c
===================================================================
--- gnome-power-manager-2.24.1.orig/src/gpm-cell-array.c
+++ gnome-power-manager-2.24.1/src/gpm-cell-array.c
@@ -551,7 +551,7 @@ gpm_cell_array_percent_changed (GpmCellA
/* do we trust the profile enough to make a decision based on time? */
if (unit->kind == GPM_CELL_UNIT_KIND_PRIMARY) {
accuracy = gpm_profile_get_accuracy_average (cell_array->priv->profile, unit->is_discharging);
- gpm_warnings_time_is_accurate (cell_array->priv->warnings, (accuracy > GPM_PROFILE_GOOD_TRUST));
+ gpm_warnings_time_is_accurate (cell_array->priv->warnings, ((accuracy*100) > GPM_PROFILE_GOOD_TRUST));
}
/* only get a warning state if we are discharging */