mirror of
https://github.com/polybar/polybar.git
synced 2026-02-23 17:55:41 +00:00
use steady clock instead of system clock
This commit is contained in:
committed by
Patrick Ziegler
parent
e6e010e45b
commit
982a22cd62
@ -176,7 +176,7 @@ namespace modules {
|
||||
const chrono::milliseconds framerate{m_animation_packetloss->framerate()};
|
||||
|
||||
while (running()) {
|
||||
auto now = chrono::system_clock::now();
|
||||
auto now = chrono::steady_clock::now();
|
||||
if (m_connected && m_packetloss) {
|
||||
m_animation_packetloss->increment();
|
||||
broadcast();
|
||||
|
||||
Reference in New Issue
Block a user