fix(deps): update dependency systeminformation to version 5.x 🌟 (#15115)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
This commit is contained in:
renovate[bot]
2021-02-23 08:29:23 -05:00
committed by GitHub
parent 50cfa91e89
commit 5901acf5ad
5 changed files with 10 additions and 10 deletions

View File

@@ -162,8 +162,8 @@ export const _aggregateGroups = (processes: Process[]) => {
group,
processCount: groupedProcesses.length,
pids: formatPidDisplay(groupedProcesses),
cpuPercent: _.sumBy(groupedProcesses, 'pcpu'),
memRssMb: _.sumBy(groupedProcesses, 'mem_rss') / 1024,
cpuPercent: _.sumBy(groupedProcesses, 'cpu'),
memRssMb: _.sumBy(groupedProcesses, 'memRss') / 1024,
}
})
.values()

View File

@@ -108,7 +108,7 @@
"squirrelly": "7.9.2",
"strip-ansi": "6.0.0",
"syntax-error": "1.4.0",
"systeminformation": "4.31.1",
"systeminformation": "5.3.1",
"term-size": "2.1.0",
"through": "2.3.8",
"tough-cookie": "4.0.0",

View File

@@ -90,7 +90,7 @@ module.exports = (on, config) => {
.filter((proc) => {
return ['firefox', 'firefox-bin'].includes(proc.command)
})
.sumBy('mem_rss')
.sumBy('memRss')
.thru((kb) => {
return Math.round(kb / 1024) // mb
})

View File

@@ -177,8 +177,8 @@ describe('lib/util/process_profiler', function () {
const processes = _.cloneDeep(PROCESSES)
.map((proc) => {
// add some dummy measurements so there is data to aggregate
proc.mem_rss = 10 * 1024 // 10mb
proc.pcpu = 20
proc.memRss = 10 * 1024 // 10mb
proc.cpu = 20
return proc
})

View File

@@ -32152,10 +32152,10 @@ syntax-error@1.4.0, syntax-error@^1.1.1:
dependencies:
acorn-node "^1.2.0"
systeminformation@4.31.1:
version "4.31.1"
resolved "https://registry.yarnpkg.com/systeminformation/-/systeminformation-4.31.1.tgz#2e02c26987494d4b6a4d2d83138724593bc98d50"
integrity sha512-dVCDWNMN8ncMZo5vbMCA5dpAdMgzafK2ucuJy5LFmGtp1cG6farnPg8QNvoOSky9SkFoEX1Aw0XhcOFV6TnLYA==
systeminformation@5.3.1:
version "5.3.1"
resolved "https://registry.yarnpkg.com/systeminformation/-/systeminformation-5.3.1.tgz#72755645a982fbb9367736518ac4e5d91f5a49e1"
integrity sha512-1xG+6xfKXSowtZsAlUp6jVaV0q+5rq9yUN+ds6Hp2dR3/EdEU5r0v74qi5YF8BCGZfmddiOwDNB0h7ge70fmYA==
table@4.0.2:
version "4.0.2"