mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-25 08:33:22 +03:00
[Web UI] fix folder plugin decoration issue for exclamation/question mark
This commit is contained in:
parent
42a657d16c
commit
1672e63e88
@ -23,6 +23,10 @@ glancesApp.service('GlancesPluginFolders', function() {
|
||||
|
||||
this.getDecoration = function(folder) {
|
||||
|
||||
if (!Number.isInteger(folder.size)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (folder.critical !== null && folder.size > (folder.critical * 1000000)) {
|
||||
return 'critical';
|
||||
} else if (folder.warning !== null && folder.size > (folder.warning * 1000000)) {
|
||||
|
Loading…
Reference in New Issue
Block a user