fix: send before sleeping
should make the initial graph come in ~200ms faster, for free
This commit is contained in:
parent
865fecd694
commit
79aff51856
1 changed files with 1 additions and 1 deletions
|
|
@ -36,8 +36,8 @@ impl State {
|
|||
|
||||
loop {
|
||||
sys.refresh_specifics(refreshes);
|
||||
Timer::after(sysinfo::MINIMUM_CPU_UPDATE_INTERVAL).await;
|
||||
sender.send(SysinfoSnapshot::from(&sys)).await.unwrap();
|
||||
Timer::after(sysinfo::MINIMUM_CPU_UPDATE_INTERVAL).await;
|
||||
}
|
||||
}),
|
||||
Message::Info,
|
||||
|
|
|
|||
Loading…
Reference in a new issue