Find a file
Benjamin Berg 50bdbe7e65 history: Fix time compression of data points
The algorithm tries to use floating point timestamps. However, the
precision of floating point is too low for unix time, causing rounding
issues. This can cause extra points to be inserted (or too few) under
some conditions, creating a scenario where the test-suite fails
randomly.

Do this properly by using 64bit integers for the time. The 64bit integer
should have enough head-room even for very long histories.

Closes: #167
2022-01-25 10:36:20 +00:00
.ci ci: Fail CI on skipped tests 2021-09-07 14:49:25 +02:00
dbus dbus: Add ChargeCycles property 2021-09-13 12:51:16 +02:00
doc build: Remove autotools 2021-09-06 14:06:40 +02:00
etc etc: Document Time* unit 2021-09-07 09:27:20 +00:00
libupower-glib lib: Simplify loop using g_auto 2022-01-24 18:27:43 +01:00
po build: Remove autotools 2021-09-06 14:06:40 +02:00
rules build: Remove autotools 2021-09-06 14:06:40 +02:00
src history: Fix time compression of data points 2022-01-25 10:36:20 +00:00
tools all: Remove HAVE_CONFIG_H conditional 2021-09-07 17:20:48 +02:00
.gitlab-ci.yml ci: Pass build parameters to check-abi 2021-09-17 12:31:43 +02:00
AUTHORS trivial: add my copyright 2008-09-06 11:12:24 +01:00
code-of-conduct.md Add code of conduct document 2019-07-25 12:08:15 +02:00
COMMITMENT Add COMMITMENT file as part of GPL Common Cure Rights Commitment 2018-06-18 16:11:43 +01:00
COPYING trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
HACKING HACKING: Mention "make check" in the file 2017-09-08 17:40:18 +02:00
meson.build build: Fix libplist 1.x builds 2021-09-13 12:32:14 +02:00
meson_options.txt build: Support building upower with meson 2021-09-02 17:47:30 +02:00
NEWS 0.99.13 2021-08-17 15:55:59 +02:00
README README: Update dependencies 2021-09-02 17:39:30 +02:00
RELEASE build: Remove autotools 2021-09-06 14:06:40 +02:00

===============
UPower
===============

Requirements:

   glib-2.0             >= 2.34.0
   gio-2.0              >= 2.16.1
   gudev-1.0            >= 235    (Linux)
   libimobiledevice-1.0 >= 0.9.7  (optional)

UPower is an abstraction for enumerating power devices,
listening to device events and querying history and statistics.
Any application or service on the system can access the
org.freedesktop.UPower service via the system message bus.