systeminformation
Advanced tools
Comparing version 5.19.1 to 5.20.0
@@ -129,2 +129,4 @@ // Type definitions for systeminformation | ||
swapfree: number; | ||
writeback: number | null; | ||
dirty: number | null; | ||
} | ||
@@ -131,0 +133,0 @@ |
@@ -165,3 +165,5 @@ 'use strict'; | ||
swapused: 0, | ||
swapfree: 0 | ||
swapfree: 0, | ||
writeback: null, | ||
dirty: null | ||
}; | ||
@@ -197,2 +199,6 @@ | ||
result.swapused = result.swaptotal - result.swapfree; | ||
result.writeback = parseInt(util.getValue(lines, 'writeback'), 10); | ||
result.writeback = result.writeback ? result.writeback * 1024 : 0; | ||
result.dirty = parseInt(util.getValue(lines, 'dirty'), 10); | ||
result.dirty = result.dirty ? result.dirty * 1024 : 0; | ||
} | ||
@@ -199,0 +205,0 @@ if (callback) { callback(result); } |
{ | ||
"name": "systeminformation", | ||
"version": "5.19.1", | ||
"version": "5.20.0", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
736707
15604
1113