gnome-power-manager r2640 - in trunk: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2640 - in trunk: . src
- Date: Mon, 21 Jan 2008 16:02:25 +0000 (GMT)
Author: rhughes
Date: Mon Jan 21 16:02:24 2008
New Revision: 2640
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2640&view=rev
Log:
2008-01-21 Richard Hughes <richard hughsie com>
* src/gpm-cell.c: (gpm_cell_refresh_hal_all):
Notify if the cell capacity is zero, not >0 && <50.
Modified:
trunk/ChangeLog
trunk/src/gpm-cell.c
Modified: trunk/src/gpm-cell.c
==============================================================================
--- trunk/src/gpm-cell.c (original)
+++ trunk/src/gpm-cell.c Mon Jan 21 16:02:24 2008
@@ -170,7 +170,12 @@
"%i to 100", unit->capacity);
unit->capacity = 100;
}
- if (unit->capacity > 0 && unit->capacity < 50) {
+ if (unit->capacity < 0) {
+ gpm_debug ("rounding up capactity from "
+ "%i to 0", unit->capacity);
+ unit->capacity = 0;
+ }
+ if (unit->capacity < 50) {
gpm_warning ("battery has a low capacity");
gpm_debug ("** EMIT: low-capacity");
g_signal_emit (cell, signals [LOW_CAPACITY], 0, unit->capacity);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]