mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 16:51:35 +03:00
[Web UI] remove domain from username in processlist
This commit is contained in:
parent
25ee7bab66
commit
32a89419e5
@ -42,6 +42,10 @@ glancesApp.service('GlancesPluginProcessList', function($filter, GlancesPlugin)
|
|||||||
process.cmdline = process.cmdline.join(' ');
|
process.cmdline = process.cmdline.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data['system'].os_name === 'Windows') {
|
||||||
|
process.username = _.last(process.username.split('\\'));
|
||||||
|
}
|
||||||
|
|
||||||
this.processes.push(process);
|
this.processes.push(process);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
4
glances/outputs/static/public/js/main.min.js
vendored
4
glances/outputs/static/public/js/main.min.js
vendored
@ -1265,6 +1265,10 @@ glancesApp.service('GlancesPluginProcessList', ["$filter", "GlancesPlugin", func
|
|||||||
process.cmdline = process.cmdline.join(' ');
|
process.cmdline = process.cmdline.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (data['system'].os_name === 'Windows') {
|
||||||
|
process.username = _.last(process.username.split('\\'));
|
||||||
|
}
|
||||||
|
|
||||||
this.processes.push(process);
|
this.processes.push(process);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user