Merge branch 'opnsense-widget'
This commit is contained in:
commit
19560e9007
@ -24,11 +24,12 @@ export default function Component({ service }) {
|
||||
<Block label="opnsense.memory" />
|
||||
<Block label="opnsense.wanUpload" />
|
||||
<Block label="opnsense.wanDownload" />
|
||||
<Block label="opnsense.wanUploadRate" />
|
||||
<Block label="opnsense.wanDownloadRate" />
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
const cpuIdle = activityData.headers[2].match(/ ([0-9.]+)% idle/)[1];
|
||||
const cpu = 100 - parseFloat(cpuIdle);
|
||||
const memory = activityData.headers[3].match(/Mem: (.+) Active,/)[1];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user