Added possibility to display stats for LVM disks
This commit is contained in:
parent
59d376ed5d
commit
58a7051d99
@ -863,6 +863,11 @@ SystemMonitorGraph.prototype = {
|
|||||||
// get IO utilization of partition
|
// get IO utilization of partition
|
||||||
let dev_fs = df_values[0];
|
let dev_fs = df_values[0];
|
||||||
let fs = dev_fs.split(/\/+/)[2];
|
let fs = dev_fs.split(/\/+/)[2];
|
||||||
|
try {
|
||||||
|
fs = GLib.file_read_link(dev_fs).split(/\/+/)[1];
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
}
|
||||||
let re = new RegExp(fs + '.+');
|
let re = new RegExp(fs + '.+');
|
||||||
// https://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed
|
// https://stackoverflow.com/questions/4458183/how-the-util-of-iostat-is-computed
|
||||||
this.cpu_file.load_contents_async(null, (file, response) => {
|
this.cpu_file.load_contents_async(null, (file, response) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user