oguzhaninan / Stacer

Linux System Optimizer and Monitoring - https://oguzhaninan.github.io/Stacer-Web
GNU General Public License v3.0
8.85k stars 603 forks source link

cpu speed not shown in ubuntu 20.04 #507

Open armin-git opened 2 years ago

armin-git commented 2 years ago

my cpu is 12700 intel why cpu speed is unknown? Screenshot from 2022-08-26 14-57-51

armin-git commented 2 years ago

i think i found why this happened in this file system_info.cpp: https://github.com/oguzhaninan/Stacer/blob/native/stacer-core/Info/system_info.cpp

you run lscpu command and split "model name" string by @ and get the last part of string that contain the cpu speed for example i have intel i7-9700 and this is lscpu result

Screenshot from 2022-08-27 09-33-56

and the cpu speed in stacer dashboard: Screenshot from 2022-08-27 14-27-22

but intel 12700 "model name", when run lscpu command, does not contain cpu speed,

Screenshot from 2022-08-27 14-33-21

therefore the cpu speed in stacer show as unknown Screenshot from 2022-08-27 14-34-54

armin-git commented 2 years ago

please put this issue to your plan for fixing thank you

alexmyczko commented 2 years ago

@armin-git so what would be the right way to get the cpu speed? maybe post an issue at lscpu project, that they are not consistently showing cpu speed?