修改网速获取

This commit is contained in:
yeyang
2022-11-27 23:42:58 +08:00
parent 6b7d4c9c40
commit 2b39083abb

View File

@@ -18,7 +18,7 @@ class OSUtils {
let cpuUsageMS = options * 1000;
cpuUsageMS = cpuUsageMS || that.cpuUsageMSDefault;
const t1 = that._getCPUInfo(); // t1 时间点 CPU 信息
si.networkStats()
await sleep(cpuUsageMS);
const t2 = that._getCPUInfo(); // t2 时间点 CPU 信息