/usr/lib/python3/dist-packages/glances/outputs/static/js/services/plugins/glances_processcount.js is in glances 2.7.1.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | glancesApp.service('GlancesPluginProcessCount', function() {
var _pluginName = "processcount";
this.total = null;
this.running = null;
this.sleeping = null;
this.stopped = null;
this.thread = null;
this.setData = function(data, views) {
data = data[_pluginName];
this.total = data['total'] || 0;
this.running = data['running'] || 0;
this.sleeping = data['sleeping'] || 0;
this.stopped = data['stopped'] || 0;
this.thread = data['thread'] || 0;
};
});
|