Commit fde4011
process: fix calculation in process.uptime()
In #26016 the result returned
by process.uptime() was mistakenly set to be based in the wrong
unit. This patch fixes the calculation and makes sure the returned
value is in seconds.
Refs: #26016
PR-URL: #26206
Fixes: #26205
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent 6b7d836 commit fde4011Copy full SHA for fde4011
File tree
Expand file treeCollapse file tree
1 file changed
+2
-4
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+2
-4
lines changedOpen diff view settings
Collapse file
src/node_process_methods.cc
Copy file name to clipboardExpand all lines: src/node_process_methods.cc+2-4Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
| 60 | + |
61 | 61 | |
62 | | - |
63 | | - |
64 | 62 | |
65 | 63 | |
66 | 64 | |
| ||
246 | 244 | |
247 | 245 | |
248 | 246 | |
249 | | - |
| 247 | + |
250 | 248 | |
251 | 249 | |
252 | 250 | |
|
0 commit comments