mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Fixed auto-updater
This commit is contained in:
parent
56e7524aad
commit
69ac2e1be9
@ -75,8 +75,7 @@ namespace RGB.NET.Core
|
|||||||
{
|
{
|
||||||
long preUpdateTicks = DateTime.Now.Ticks;
|
long preUpdateTicks = DateTime.Now.Ticks;
|
||||||
|
|
||||||
foreach (IRGBDevice device in _devices)
|
Update();
|
||||||
device.Update();
|
|
||||||
|
|
||||||
int sleep = (int)((UpdateFrequency * 1000.0) - ((DateTime.Now.Ticks - preUpdateTicks) / 10000.0));
|
int sleep = (int)((UpdateFrequency * 1000.0) - ((DateTime.Now.Ticks - preUpdateTicks) / 10000.0));
|
||||||
if (sleep > 0)
|
if (sleep > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user