Minor code cleanup
This commit is contained in:
parent
e3cfd55602
commit
ae9d092953
@ -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) {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user