Open 617450941 opened 1 year ago
@617450941 can you confirm, that the following code on your machine always returns null
for rx_sec and tx_sec:
const si = require('systeminformation');
setInterval(function() {
si.networkStats().then(data => {
console.log(data);
})
}, 1000)
The first call SHOULD return null
but from the second call on, it should return correct values.
Describe the bug The rx_sec and tx_sec properties of the objects returned by si.networkStats() are null. version "systeminformation": "^5.17.12"
To Reproduce Steps to reproduce the behavior:
Call the function getNetworkStats(). Run the code on Windows Server 2008 x64. See that the rx_sec and tx_sec properties of the objects returned by si.networkStats() are null. Current Output The rx_sec and tx_sec properties of the objects returned by si.networkStats() are null.
Expected behavior The rx_sec and tx_sec properties of the objects returned by si.networkStats() should contain valid values.
Environment
systeminformation package version: Unknown OS: Windows Server 2008 x64 Hardware: Unknown Additional context The code has been formatted below for clarity: