diff options
Diffstat (limited to 'src/node_os.cc')
-rw-r--r-- | src/node_os.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index e3d9971e3e..bed5a09b20 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -115,7 +115,8 @@ static void GetOSRelease(const FunctionCallbackInfo<Value>& args) { OSVERSIONINFO info; info.dwOSVersionInfoSize = sizeof(info); - if (GetVersionEx(&info) == 0) return; + if (GetVersionEx(&info) == 0) + return; snprintf(release, sizeof(release), @@ -136,7 +137,8 @@ static void GetCPUInfo(const FunctionCallbackInfo<Value>& args) { int count, i; int err = uv_cpu_info(&cpu_infos, &count); - if (err) return; + if (err) + return; Local<Array> cpus = Array::New(); for (i = 0; i < count; i++) { @@ -172,7 +174,8 @@ static void GetCPUInfo(const FunctionCallbackInfo<Value>& args) { static void GetFreeMemory(const FunctionCallbackInfo<Value>& args) { HandleScope scope(node_isolate); double amount = uv_get_free_memory(); - if (amount < 0) return; + if (amount < 0) + return; args.GetReturnValue().Set(amount); } @@ -180,7 +183,8 @@ static void GetFreeMemory(const FunctionCallbackInfo<Value>& args) { static void GetTotalMemory(const FunctionCallbackInfo<Value>& args) { HandleScope scope(node_isolate); double amount = uv_get_total_memory(); - if (amount < 0) return; + if (amount < 0) + return; args.GetReturnValue().Set(amount); } @@ -189,7 +193,8 @@ static void GetUptime(const FunctionCallbackInfo<Value>& args) { HandleScope scope(node_isolate); double uptime; int err = uv_uptime(&uptime); - if (err == 0) args.GetReturnValue().Set(uptime); + if (err == 0) + args.GetReturnValue().Set(uptime); } |