systeminformation 5.17.5 → 5.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/processes.js +3 -3
  2. package/package.json +1 -1
package/lib/processes.js CHANGED
@@ -98,7 +98,7 @@ function parseElapsedTime(etime) {
98
98
  try {
99
99
  res = new Date(current.getTime() - ms);
100
100
  result = res.toISOString().substring(0, 10) + ' ' + res.toISOString().substring(11, 19);
101
- } catch {
101
+ } catch (e) {
102
102
  util.noop();
103
103
  }
104
104
  return result;
@@ -496,8 +496,8 @@ function calcProcStatWin(procStat, all, _cpu_old) {
496
496
  }
497
497
  return {
498
498
  pid: procStat.pid,
499
- utime: cpuu > 0 ? procStat.utime : 0,
500
- stime: cpus > 0 ? procStat.stime : 0,
499
+ utime: procStat.utime,
500
+ stime: procStat.stime,
501
501
  cpuu: cpuu > 0 ? cpuu : 0,
502
502
  cpus: cpus > 0 ? cpus : 0
503
503
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.17.5",
3
+ "version": "5.17.7",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",