Bugfix: HDD: Force string for filesystem label

This commit is contained in:
rcassani 2022-08-20 12:53:53 -04:00
parent c19f44b4a9
commit 27bcd58c11

View File

@ -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");