Age | Commit message (Collapse) | Author | Files | Lines |
|
Reproducible by executing `upower -d` or by calling the DBus method
org.freedesktop.UPower.Device.GetStatistics(charging).
up_device_get_statistics ->
up_history_get_profile_data ->
up_stats_item_new.
https://bugs.freedesktop.org/show_bug.cgi?id=82659
|
|
|
|
In addition to build time - this increases compatibilty with OSTree,
which starts out with an empty /var.
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Matching the work done in glib, gtk+, etc.
This also differentiates the unknown and normal timeouts in
the Linux power supply driver.
|
|
And remove ifdef's.
|
|
It's already done by GObject.
|
|
|
|
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
|
|
up_device_supply_get_design_voltage(): up_device_supply_get_string() returns a
newly allocated copy.
up_history_finalize(): Forgot to free history->priv->dir
https://bugs.freedesktop.org/show_bug.cgi?id=60019
|
|
This makes the code conform to the documentation.
|
|
Resolves: https://bugs.freedesktop.org/show_bug.cgi?id=41486
|
|
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
Add up_history_set_directory() method to change the directory for history
files. This is mainly useful for our test suite.
|
|
|
|
rh#634228
Parsing huge log files at startup will demolish startup time. Cull old
entries when the file is resaved to keep them sane. Also add the needed
self tests to check this in the future.
|
|
|
|
This makes it possible to profile more accurately using systemtap
|
|
devkit-power-gobject
|
|
Distros should move existing files from
/var/lib/DeviceKit-power to /var/lib/upower on upgrades in their
maintainer scripts.
|
|
|
|
|
|
|
|
|
|
|
|
ABI changes
|