From 27bcd58c1121ebf0e1b0ed3fb1d61ec0f1b0e2c5 Mon Sep 17 00:00:00 2001 From: rcassani Date: Sat, 20 Aug 2022 12:53:53 -0400 Subject: [PATCH] Bugfix: HDD: Force string for filesystem label --- files/system-monitor-graph@rcassani/desklet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/system-monitor-graph@rcassani/desklet.js b/files/system-monitor-graph@rcassani/desklet.js index 0dd1a41..0858528 100644 --- a/files/system-monitor-graph@rcassani/desklet.js +++ b/files/system-monitor-graph@rcassani/desklet.js @@ -188,7 +188,7 @@ SystemMonitorGraph.prototype = { let hdd_use = Math.min(this.hdd_values[1], 100); //already in % value = hdd_use / 100; text1 = this.filesystem_label; - if (text1 == "") text1 = this.hdd_values[0]; + if (text1 == "") text1 = this.hdd_values[0].toString(); text2 = Math.round(hdd_use).toString() + "%" text3 = this.hdd_values[3].toFixed(0) + " " + _("GB free of") + " " + this.hdd_values[2].toFixed(0) + " " + _("GB");