1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

Fixed auto-updater

This commit is contained in:
Darth Affe 2017-01-26 20:56:18 +01:00
parent 56e7524aad
commit 69ac2e1be9

View File

@ -75,8 +75,7 @@ namespace RGB.NET.Core
{
long preUpdateTicks = DateTime.Now.Ticks;
foreach (IRGBDevice device in _devices)
device.Update();
Update();
int sleep = (int)((UpdateFrequency * 1000.0) - ((DateTime.Now.Ticks - preUpdateTicks) / 10000.0));
if (sleep > 0)