Fixed smooth CPU problems more properly.

Yes, you read that right.
This commit is contained in:
Thulinma 2013-12-22 13:42:39 +01:00
parent 8c09bbc3e9
commit 723c8b8b3b

View file

@ -485,9 +485,11 @@ namespace Connector_HTTP {
Util::sleep(250); Util::sleep(250);
} }
}else{ }else{
if (!ready4data){
//Wait 250ms before checking for new data. //Wait 250ms before checking for new data.
Util::sleep(250); Util::sleep(250);
} }
}
if (ready4data){ if (ready4data){
unsigned int now = Util::epoch(); unsigned int now = Util::epoch();
if (now != lastStats){ if (now != lastStats){