mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-29 16:50:20 +12:00
Fixed: Extra "root" partition when running in snap
This commit is contained in:
parent
132f4e6da1
commit
d96fdd7eb2
|
@ -896,7 +896,11 @@ namespace Mem {
|
|||
disks.at("swap").free_percent = mem.percent.at("swap_free").back();
|
||||
}
|
||||
for (const auto& name : last_found)
|
||||
if (not is_in(name, "/", "swap")) mem.disks_order.push_back(name);
|
||||
#ifdef SNAPPED
|
||||
if (not is_in(name, "/mnt", "swap")) mem.disks_order.push_back(name);
|
||||
#else
|
||||
if (not is_in(name, "/", "swap")) mem.disks_order.push_back(name);
|
||||
#endif
|
||||
|
||||
//? Get disks IO
|
||||
int64_t sectors_read, sectors_write, io_ticks;
|
||||
|
|
Loading…
Reference in a new issue