修改
This commit is contained in:
parent
8bc40a651d
commit
f338ddac43
@ -56,7 +56,7 @@
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
// console.table(data)
|
// console.table(data)
|
||||||
zhao_temp.innerText = data.cpu.temperature
|
zhao_temp.innerText = data.cpu.temperature
|
||||||
zhao_cpu.innerText = data.cpu.load
|
zhao_cpu.innerText = (data.cpu.load * 100).toFixed(2)
|
||||||
zhao_mem.innerText = data.memory.available
|
zhao_mem.innerText = data.memory.available
|
||||||
})
|
})
|
||||||
fetch(new Request('http://pi:4000'))
|
fetch(new Request('http://pi:4000'))
|
||||||
@ -64,7 +64,7 @@
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
// console.table(data)
|
// console.table(data)
|
||||||
pi_temp.innerText = data.cpu.temperature
|
pi_temp.innerText = data.cpu.temperature
|
||||||
pi_cpu.innerText = data.cpu.load
|
pi_cpu.innerText = (data.cpu.load * 100).toFixed(2)
|
||||||
pi_mem.innerText = data.memory.available
|
pi_mem.innerText = data.memory.available
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user