mirror of
https://github.com/morgan9e/gnome-shell-extension-freon
synced 2026-04-14 00:14:14 +09:00
Improve drive output
This commit is contained in:
@@ -165,7 +165,8 @@ function parseHddTempOutput(txt, sep) {
|
||||
for each(let line in hddtemp_output) {
|
||||
let sensor = new Array();
|
||||
let fields = line.split(sep).filter(function(e){ return e; });
|
||||
sensor['label'] = _("Drive %s").format(fields[0].split('/').pop());
|
||||
//sensor['label'] = _("Drive %s").format(fields[0].split('/').pop());
|
||||
sensor['label'] = fields[0].split('/').pop() + ' - ' + fields[1];
|
||||
sensor['temp'] = parseFloat(fields[2]);
|
||||
//push only if the temp is a Number
|
||||
if (!isNaN(sensor['temp']))
|
||||
|
||||
Reference in New Issue
Block a user