Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Don't check sign of loadavg
Browse files Browse the repository at this point in the history
Fixes #1838
  • Loading branch information
indutny authored and ry committed Oct 7, 2011
1 parent 6984553 commit 4561d9e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/node_os.cc
Expand Up @@ -153,10 +153,6 @@ static Handle<Value> GetLoadAvg(const Arguments& args) {
double loadavg[3];
uv_loadavg(loadavg);

if (loadavg[0] < 0) {
return Undefined();
}

Local<Array> loads = Array::New(3);
loads->Set(0, Number::New(loadavg[0]));
loads->Set(1, Number::New(loadavg[1]));
Expand Down

0 comments on commit 4561d9e

Please sign in to comment.