From 959db90cacff1eb59cfd143f9185e1a8d119b01d Mon Sep 17 00:00:00 2001 From: otaviocozer Date: Thu, 19 Mar 2026 15:33:07 -0300 Subject: [PATCH] allow when no gtop --- sensors.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sensors.js b/sensors.js index be8df5d..c84630b 100644 --- a/sensors.js +++ b/sensors.js @@ -67,13 +67,14 @@ export const Sensors = GObject.registerClass({ this._frameMonitorAccTime = 0; this._frameMonitorCurrentHz = 0; + this._storageDevice = ''; + this._findStorageDevice(); + + this._lastRead = 0; + this._lastWrite = 0; + if (hasGTop) { this.storage = new GTop.glibtop_fsusage(); - this._storageDevice = ''; - this._findStorageDevice(); - - this._lastRead = 0; - this._lastWrite = 0; } }