summaryrefslogtreecommitdiff
path: root/lib/internal/process.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/process.js')
-rw-r--r--lib/internal/process.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/internal/process.js b/lib/internal/process.js
index 5254b5993b..1636e73b7e 100644
--- a/lib/internal/process.js
+++ b/lib/internal/process.js
@@ -46,10 +46,12 @@ function setup_cpuUsage() {
}
// If a previous value was passed in, return diff of current from previous.
- if (prevValue) return {
- user: cpuValues[0] - prevValue.user,
- system: cpuValues[1] - prevValue.system
- };
+ if (prevValue) {
+ return {
+ user: cpuValues[0] - prevValue.user,
+ system: cpuValues[1] - prevValue.system
+ };
+ }
// If no previous value passed in, return current value.
return {