Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit eeeb7a8

Browse filesBrowse files
committed
fix(mod_cpuinfo): cpu speed not displaying
1 parent 5aa1232 commit eeeb7a8
Copy full SHA for eeeb7a8

1 file changed

+4-4Lines changed: 4 additions & 4 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/classes/cpuinfo.class.js‎

Copy file name to clipboardExpand all lines: src/classes/cpuinfo.class.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Cpuinfo {
4141
<i id="mod_cpuinfo_temp">${(process.platform === "win32") ? data.cores : "--°C"}</i></h1>
4242
</div>
4343
<div>
44-
<h1>MIN<br>
44+
<h1>SPD<br>
4545
<i id="mod_cpuinfo_speed_min">--GHz</i></h1>
4646
</div>
4747
<div>
@@ -153,10 +153,10 @@ class Cpuinfo {
153153
});
154154
}
155155
updateCPUspeed() {
156-
window.si.cpuCurrentspeed().then(data => {
156+
window.si.cpu().then(data => {
157157
try {
158-
document.getElementById("mod_cpuinfo_speed_min").innerText = `${data.min}GHz`;
159-
document.getElementById("mod_cpuinfo_speed_max").innerText = `${data.max}GHz`;
158+
document.getElementById("mod_cpuinfo_speed_min").innerText = `${data.speed}GHz`;
159+
document.getElementById("mod_cpuinfo_speed_max").innerText = `${data.speedMax}GHz`;
160160
} catch(e) {
161161
// See above notice
162162
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.