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

Chris Holland <zrenf...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zrenf...@gmail.com

--- Comment #1 from Chris Holland <zrenf...@gmail.com> ---
I observe this regularly after putting my PC to sleep. I don't hibernate it,
and I'm able to wake it with the spacebar.

Operating System: Manjaro Linux 
KDE Plasma Version: 5.17.4
KDE Frameworks Version: 5.65.0
Qt Version: 5.14.0
Kernel Version: 5.4.6-2-MANJARO

-----

Here's where the logic is calculated:

*
https://github.com/KDE/libksysguard/blob/master/processui/ProcessModel.cpp#L1410
*
https://github.com/KDE/libksysguard/blob/master/processui/ProcessModel.cpp#L1573

I think it's caused by TimeUtil::systemUptimeAbsolute(), as it takes the
current time, and subtracts TimeUtil::systemUptimeSeconds()

* https://github.com/KDE/libksysguard/blob/master/processui/timeutil.h#L65
* https://github.com/KDE/libksysguard/blob/master/processui/timeutil.h#L45
* https://doc.qt.io/qt-5/qdatetime.html#currentDateTime

We're using CLOCK_MONOTONIC

> https://linux.die.net/man/3/clock_gettime
> CLOCK_MONOTONIC
>    Clock that cannot be set and represents monotonic time since some 
> unspecified starting point.


I assume that it's taking the seconds since waking up and subtracting the
seconds since the system's initial boot somewhere but I can't figure it out
without some debug logging.

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

Reply via email to