mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +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 max = 0;
|
||||
for each (let i in tempInfo){
|
||||
if(i.temp !== 'N/A'){
|
||||
if(i.temp !== null){
|
||||
total++;
|
||||
sum += i.temp;
|
||||
if (i.temp > max)
|
||||
|
||||
Reference in New Issue
Block a user