mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-15 00:44:22 +09:00
fix total sensor count detection, close #6
This commit is contained in:
@@ -266,7 +266,7 @@ const FreonMenuButton = new Lang.Class({
|
|||||||
let sum = 0;
|
let sum = 0;
|
||||||
let max = 0;
|
let max = 0;
|
||||||
for each (let i in tempInfo){
|
for each (let i in tempInfo){
|
||||||
if(i.temp !== 'N/A'){
|
if(i.temp !== null){
|
||||||
total++;
|
total++;
|
||||||
sum += i.temp;
|
sum += i.temp;
|
||||||
if (i.temp > max)
|
if (i.temp > max)
|
||||||
|
|||||||
Reference in New Issue
Block a user