From 12ecebd02e370b3de9bc90d50419083023571f1f Mon Sep 17 00:00:00 2001 From: UshakovVasilii Date: Mon, 25 May 2015 17:33:59 +0300 Subject: [PATCH] display fans with 0 value, fix #11 --- freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js index 53722e8..5abf306 100644 --- a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js +++ b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js @@ -29,10 +29,8 @@ const SensorsUtil = new Lang.Class({ }, get rpm() { - let s = this._parseGenericSensorsOutput(this._parseFanRPMLine); - return s.filter(function(e){ - return e.rpm > 0; - }); + // 0 is normal value for turned off fan + return this._parseGenericSensorsOutput(this._parseFanRPMLine); }, get volt() {