lollipopkit / flutter_server_box

ServerBox - server status & toolbox app using Flutter
GNU General Public License v3.0
3.71k stars 239 forks source link

CPU显示不对 #290

Closed Peter-90 closed 3 months ago

Peter-90 commented 4 months ago

IMG_1148 pve和下面的两个虚拟机的CPU显示总是一样,其实在PVE的后台看是不一样的

APP版本:v1.0.773(+3) IOS版本:17.0.3

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: CPU display is wrong

IMG_1148 The CPU display of pve and the two virtual machines below are always the same. In fact, they are different in the background of PVE.

APP version: v1.0.773(+3) IOS version: 17.0.3

lollipopkit commented 4 months ago

大概是计算方式、频率不同

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Probably the calculation methods and frequencies are different.

Peter-90 commented 4 months ago

大概是计算方式、频率不同

  • 方式:pve 可能 是基于kvm统计的,serverbox是基于Linux系统内核统计的
  • 频率:计算使用率与时间有关,pve 可能 频率为5s,serverbox可能3s,CPU在5s和3s内的平均使用率当然不同

我记得之前的某个版本是对的,更新以后就不对了,这个导致其实看到的cpu都是pve的数据,看不到各虚拟机的数据

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Probably due to different calculation methods and frequencies

  • Method: pve may be based on kvm statistics, serverbox is based on Linux system kernel statistics
  • Frequency: Calculation of usage is related to time, pve may frequency is 5s, serverbox may be 3s, the average CPU usage in 5s and 3s is of course different

I remember that a certain previous version was correct, but after the update it was incorrect. This resulted in the fact that the CPU data I saw was all the PVE data, and the data of each virtual machine could not be seen.

lollipopkit commented 4 months ago

可是CPU显示的实现一直没有修改过。

有没有可能是给每个虚拟机的CPU核数改变了?或者改变了CPU类型?

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, the implementation of CPU display has not been modified.

Is it possible that the number of CPU cores assigned to each virtual machine has changed? Or changed the CPU type?

Peter-90 commented 4 months ago

可是CPU显示的实现一直没有修改过。

有没有可能是给每个虚拟机的CPU核数改变了?或者改变了CPU类型?

这我没有调整过,我记得有个版本显示是对的,问题不大,就是看起来有点尴尬

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


However, the implementation of CPU display has not been modified.

Is it possible that the number of CPU cores assigned to each virtual machine has been changed? Or changed the CPU type?

We have adjusted this. I have a few versions that show it is correct. It’s not a big problem, it just looks a bit awkward.

lollipopkit commented 3 months ago

那不好意思,暂不处理

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sorry, we won't deal with it yet.