summaryrefslogtreecommitdiffstats
path: root/glances/outputs/static/js/services/plugins/fs.js
diff options
context:
space:
mode:
Diffstat (limited to 'glances/outputs/static/js/services/plugins/fs.js')
-rw-r--r--glances/outputs/static/js/services/plugins/fs.js40
1 files changed, 0 insertions, 40 deletions
diff --git a/glances/outputs/static/js/services/plugins/fs.js b/glances/outputs/static/js/services/plugins/fs.js
deleted file mode 100644
index 07f9b9e2..00000000
--- a/glances/outputs/static/js/services/plugins/fs.js
+++ /dev/null
@@ -1,40 +0,0 @@
-glancesApp.service('GlancesPluginFs', function() {
- var _pluginName = "fs";
- var _view = {};
- this.fileSystems = [];
-
- this.setData = function(data, views) {
- _view = views[_pluginName];
- data = data[_pluginName];
- this.fileSystems = [];
-
- for (var i = 0; i < data.length; i++) {
- var fsData = data[i];
-
- var shortMountPoint = fsData['mnt_point'];
- if (shortMountPoint.length > 9) {
- shortMountPoint = '_' + fsData['mnt_point'].slice(-8);
- }
-
- var fs = {
- 'name': fsData['device_name'],
- 'mountPoint': fsData['mnt_point'],
- 'shortMountPoint': shortMountPoint,
- 'percent': fsData['percent'],
- 'size': fsData['size'],
- 'used': fsData['used'],
- 'free': fsData['free']
- };
-
- this.fileSystems.push(fs);
- }
- };
-
- this.getDecoration = function(mountPoint, field) {
- if(_view[mountPoint][field] == undefined) {
- return;
- }
-
- return _view[mountPoint][field].decoration.toLowerCase();
- };
-});