upower/libupower-glib
Martin Pitt 2b10e20262 Make GetHistory() array order consistent
When requesting fewer history elements than we actually have, fix the
interpolation loop to not reverse the returned elements; this already does not
happen if we request more elements than available, which led to the returned
list order depending on the history size.

Now the first array element is always the most recent one. Update documentation
accordingly.

Add test case to reproduce the problem. We now add three sample points to be
able to request a subset and still assert its correct order, and make the
charge values be further apart to ensure correct interpolation.

https://bugs.freedesktop.org/show_bug.cgi?id=68384
2013-08-29 10:44:26 +02:00
..
Makefile.am Require applications to define UPOWER_ENABLE_DEPRECATED to use deprecated functionality 2013-02-12 11:08:27 +00:00
up-client.c libupower-glib: fix small memory leak 2012-04-26 17:39:42 +01:00
up-client.h Require applications to define UPOWER_ENABLE_DEPRECATED to use deprecated functionality 2013-02-12 11:08:27 +00:00
up-device.c Make GetHistory() array order consistent 2013-08-29 10:44:26 +02:00
up-device.h Use GCancellable in libupower-glib so we can eventually get to GIO async methods without breaking future API 2010-02-05 09:41:06 +00:00
up-history-item.c Convert the daemon to using objects from libupower-glib, not devkit-power-gobject 2010-03-26 12:49:01 +00:00
up-history-item.h Convert the daemon to using objects from libupower-glib, not devkit-power-gobject 2010-03-26 12:49:01 +00:00
up-qos-item.c Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
up-qos-item.h Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
up-stats-item.c Convert the daemon to using objects from libupower-glib, not devkit-power-gobject 2010-03-26 12:49:01 +00:00
up-stats-item.h Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
up-types.c Add new NotifySleep() and NotifyResume() signals that include the sleep type 2011-05-04 17:57:13 +01:00
up-types.h Add new NotifySleep() and NotifyResume() signals that include the sleep type 2011-05-04 17:57:13 +01:00
up-version.h.in Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
up-wakeup-item.c Fix up all the warnings when building with new versions of gobject-introspection 2010-10-05 11:13:09 +01:00
up-wakeup-item.h Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
up-wakeups.c Selectively disable warnings for deprecated GValueArray 2012-06-14 12:52:11 +02:00
up-wakeups.h Use GCancellable in libupower-glib so we can eventually get to GIO async methods without breaking future API 2010-02-05 09:41:06 +00:00
upower.h trivial: fix up UpWakeups to actually compile 2010-02-05 09:25:40 +00:00