Fixed smooth CPU problems more properly.
Yes, you read that right.
This commit is contained in:
parent
8c09bbc3e9
commit
723c8b8b3b
1 changed files with 4 additions and 2 deletions
|
@ -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){
|
||||||
|
|
Loading…
Add table
Reference in a new issue