gnome-power-manager r2260 - in trunk: . src test



Author: rhughes
Date: 2007-06-13 14:21:29 +0100 (Wed, 13 Jun 2007)
New Revision: 2260
ViewCVS link: http://svn.gnome.org/viewcvs/gnome-power-manager?rev=2260&view=rev

Modified:
   trunk/ChangeLog
   trunk/src/gpm-array-float.c
   trunk/src/gpm-array-float.h
   trunk/src/gpm-cell-array.c
   trunk/src/gpm-engine.c
   trunk/src/gpm-profile.c
   trunk/src/gpm-profile.h
   trunk/test/gpm-selftest-hal-devices.fdi
   trunk/test/gpm-st-array-float.c
   trunk/test/gpm-st-cell.c
   trunk/test/gpm-st-main.c
   trunk/test/install-fdi.sh
Log:
2007-06-13  Richard Hughes  <richard hughsie com>

* src/gpm-cell-array.c: (gpm_cell_array_emit_system_action),
(gpm_cell_array_percent_changed):
* src/gpm-engine.c: (gpm_engine_get_summary):
* src/gpm-profile.c: (gpm_profile_get_accuracy_average):
* src/gpm-profile.h:
Don't try to do the policy acton when the average accuracy is low.
This should solve the problem where g-p-m shuts down when the profile
is very new, and g-p-m has not seen the lower states.
Should fix #446895 and other duplicates.

* src/gpm-array-float.c: (gpm_array_float_get_average):
* src/gpm-array-float.h:
* test/gpm-st-array-float.c: (gpm_st_array_float):
Add code to compute the average of a float list.

* test/gpm-selftest-hal-devices.fdi:
Use BAT0.

* test/gpm-st-cell.c: (gpm_cell_get_battery), (gpm_st_cell):
* test/gpm-st-main.c: (gpm_st_failed), (main):
Stop the checks when an error happens.

* test/install-fdi.sh:
Restart HAL to get the new fdi set.





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