Minor code cleanup

This commit is contained in:
rcassani 2022-06-11 16:48:47 -04:00
parent e3cfd55602
commit ae9d092953
2 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@ const Cinnamon = imports.gi.Cinnamon;
const Gio = imports.gi.Gio; const Gio = imports.gi.Gio;
const Cairo = imports.cairo; const Cairo = imports.cairo;
const St = imports.gi.St; const St = imports.gi.St;
//const Util = imports.misc.util;
const GLib = imports.gi.GLib; const GLib = imports.gi.GLib;
const Gettext = imports.gettext; const Gettext = imports.gettext;
@ -100,11 +99,11 @@ SystemMonitorGraph.prototype = {
this.hdd_hdd_tot = 0; this.hdd_hdd_tot = 0;
// values to graph // values to graph
this.cpu_use = 0; 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.ram_values = new Array(2).fill(0.0);
this.swap_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.hdd_values = new Array(4).fill(0.0);
this.gpu_use = 0;
this.gpu_mem = new Array(2).fill(0.0);
// set colors // set colors
switch (this.type) { switch (this.type) {

View File

@ -3,6 +3,6 @@
"uuid": "system-monitor-graph@rcassani", "uuid": "system-monitor-graph@rcassani",
"name": "System monitor graph", "name": "System monitor graph",
"description": "Creates graphs for system variables.", "description": "Creates graphs for system variables.",
"version": "1.3", "version": "1.4",
"prevent-decorations": true "prevent-decorations": true
} }