Skip to content

Commit 82f10d3

Browse files
committed
fix: removed "Total Memory" metric from stacked Memory Overview graph
1 parent 0cc5715 commit 82f10d3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mamonsu/plugins/system/linux/memory.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def graphs(self, template, dashboard=False):
8484
all_items = []
8585
free_used_items = []
8686
for item in self.Items:
87-
all_items.append({
88-
"key": self.right_type(self.key, item[0]),
89-
"color": item[3]
90-
})
87+
if item[0] != "total":
88+
all_items.append({
89+
"key": self.right_type(self.key, item[0]),
90+
"color": item[3]
91+
})
9192
# manually build Free/Used graph items to manage the order of graph filled regions
9293
# used - User-Space
9394
free_used_items.append({

0 commit comments

Comments
 (0)