From ae9d0929532e10a51f494a75065c41c378535a85 Mon Sep 17 00:00:00 2001 From: rcassani Date: Sat, 11 Jun 2022 16:48:47 -0400 Subject: [PATCH] Minor code cleanup --- files/system-monitor-graph@rcassani/desklet.js | 5 ++--- files/system-monitor-graph@rcassani/metadata.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/files/system-monitor-graph@rcassani/desklet.js b/files/system-monitor-graph@rcassani/desklet.js index fe72a9a..0dd1a41 100644 --- a/files/system-monitor-graph@rcassani/desklet.js +++ b/files/system-monitor-graph@rcassani/desklet.js @@ -7,7 +7,6 @@ const Cinnamon = imports.gi.Cinnamon; const Gio = imports.gi.Gio; const Cairo = imports.cairo; const St = imports.gi.St; -//const Util = imports.misc.util; const GLib = imports.gi.GLib; const Gettext = imports.gettext; @@ -100,11 +99,11 @@ SystemMonitorGraph.prototype = { this.hdd_hdd_tot = 0; // values to graph this.cpu_use = 0; - this.gpu_use = 0; - this.gpu_mem = new Array(2).fill(0.0); this.ram_values = new Array(2).fill(0.0); this.swap_values = new Array(2).fill(0.0); this.hdd_values = new Array(4).fill(0.0); + this.gpu_use = 0; + this.gpu_mem = new Array(2).fill(0.0); // set colors switch (this.type) { diff --git a/files/system-monitor-graph@rcassani/metadata.json b/files/system-monitor-graph@rcassani/metadata.json index 227c7b0..19a3584 100644 --- a/files/system-monitor-graph@rcassani/metadata.json +++ b/files/system-monitor-graph@rcassani/metadata.json @@ -3,6 +3,6 @@ "uuid": "system-monitor-graph@rcassani", "name": "System monitor graph", "description": "Creates graphs for system variables.", - "version": "1.3", + "version": "1.4", "prevent-decorations": true }