[gnome-power-manager/gnome-2-32] Don't treat percentage=0 as error condition
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-32] Don't treat percentage=0 as error condition
- Date: Fri, 6 Aug 2010 15:02:57 +0000 (UTC)
commit f242d266a9659d72cdbbb148ad867fc4ccbc6f26
Author: Chow Loong Jin <hyperair ubuntu com>
Date: Fri Aug 6 15:49:54 2010 +0100
Don't treat percentage=0 as error condition
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpm-engine.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/src/gpm-engine.c b/src/gpm-engine.c
index 14f8898..9ba8d44 100644
--- a/src/gpm-engine.c
+++ b/src/gpm-engine.c
@@ -123,11 +123,6 @@ gpm_engine_get_warning_percentage (GpmEngine *engine, UpDevice *device)
/* get device properties */
g_object_get (device, "percentage", &percentage, NULL);
- /* this is probably an error condition */
- if (percentage == 0) {
- egg_warning ("percentage zero, something's gone wrong");
- return GPM_ENGINE_WARNING_NONE;
- }
if (percentage <= engine->priv->action_percentage)
return GPM_ENGINE_WARNING_ACTION;
if (percentage <= engine->priv->critical_percentage)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]