mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
Merge pull request #108 from yustnip/fix/nvidia-nan
Fixed NaN values when NVIDIA is disabled
This commit is contained in:
@@ -51,9 +51,11 @@ var NvidiaUtil = new Lang.Class({
|
||||
return [];
|
||||
let temps = [];
|
||||
for (let line of this._output) {
|
||||
if(!line)
|
||||
let convertedLine = parseFloat(line);
|
||||
|
||||
if(!line || !convertedLine)
|
||||
continue;
|
||||
temps.push(parseFloat(line));
|
||||
temps.push(convertedLine);
|
||||
}
|
||||
|
||||
let gpus = [];
|
||||
|
||||
Reference in New Issue
Block a user