Skip to content

Commit

Permalink
Merge pull request #54 from IceWhaleTech/dev
Browse files Browse the repository at this point in the history
🐞 Fixed
  • Loading branch information
jerrykuku committed Jun 13, 2022
2 parents 9bf5975 + 2e690cf commit 62a6bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// .env.dev
NODE_ENV=dev
VUE_APP_DEV_IP=192.168.2.10
VUE_APP_DEV_PORT=8034
VUE_APP_DEV_PORT=8035
2 changes: 1 addition & 1 deletion src/widgets/Cpu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default {
const cpu_delta = item.data.cpu_stats.cpu_usage.total_usage - item.pre.cpu_stats.cpu_usage.total_usage
const system_cpu_delta = item.data.cpu_stats.system_cpu_usage - item.pre.cpu_stats.system_cpu_usage + 1
// const number_cpus = item.data.cpu_stats.online_cpus
usage = Math.floor((cpu_delta / system_cpu_delta) * 1000) / 100
usage = Math.floor((cpu_delta / system_cpu_delta) * 1000) / 10
}
id++
return {
Expand Down

0 comments on commit 62a6bd4

Please sign in to comment.