https://bugs.kde.org/show_bug.cgi?id=446414

Arjen Hiemstra <ahiems...@heimr.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/ksystemstats/commit/40be |ma/ksystemstats/commit/118c
                   |1b73c06c52073c525cf77934aa8 |4bdf3b46bf20e93d02bdc4470ea
                   |877097e32                   |c1fa80baa
             Status|REOPENED                    |RESOLVED

--- Comment #8 from Arjen Hiemstra <ahiems...@heimr.nl> ---
Git commit 118c4bdf3b46bf20e93d02bdc4470eac1fa80baa by Arjen Hiemstra.
Committed on 11/05/2022 at 10:49.
Pushed by ahiemstra into branch 'Plasma/5.24'.

Set proper initial values for many SensorProperties

SensorProperty in libksysguard was changed to reset the value of a
sensor on unsubscribe. However, this caused a number of "static" sensors
to break and only provide their value once. To fix this, SensorProperty
will now only reset the value if a valid initial value was provided.

This changes many SensorProperties to have valid initial values. This
has been applied primarily to sensors that are very volatile and which
provide a different value almost every update, like the various rate
sensors as well as the usage percentage sensors. For these sensors, it
is unlikely thata a historical value makes any sense.

Other sensors, like memory usage, are less volatile and will generally
not vary wildly, so providing a historical value for those seems better
than an empty value.


(cherry picked from commit 40be1b73c06c52073c525cf77934aa8877097e32)

M  +6    -6    plugins/cpu/cpu.cpp
M  +2    -2    plugins/cpu/freebsdcpuplugin.cpp
M  +3    -3    plugins/cpu/loadaverages.cpp
M  +4    -4    plugins/disks/disks.cpp
M  +1    -1    plugins/gpu/AllGpus.cpp
M  +4    -4    plugins/gpu/GpuDevice.cpp
M  +3    -3    plugins/gpu/LinuxAmdGpu.cpp
M  +4    -4    plugins/network/AllDevicesObject.cpp
M  +5    -5    plugins/network/NetworkDevice.cpp
M  +13   -13   plugins/osinfo/osinfo.cpp
M  +2    -1    plugins/power/power.cpp

https://invent.kde.org/plasma/ksystemstats/commit/118c4bdf3b46bf20e93d02bdc4470eac1fa80baa

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to