mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 10:42:29 +03:00
Make filesystem list unique
This commit is contained in:
parent
43e9ed3696
commit
09c66999eb
@ -185,8 +185,9 @@ class Plugin(GlancesPlugin):
|
||||
else:
|
||||
stats.append(fs_current)
|
||||
|
||||
# Update the stats
|
||||
self.stats = stats
|
||||
# Create unique list filter by "mnt_point" and update the stats
|
||||
seen = set()
|
||||
self.stats = [seen.add(stat['mnt_point']) or stat for stat in stats if stat['mnt_point'] not in seen]
|
||||
|
||||
return self.stats
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user