From 3be242ef327e9682a6f86c90b77bd6d35175aec2 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Sun, 5 Aug 2018 11:56:11 -0400 Subject: [PATCH] split static and dynamic table drawing --- core | 2 +- drawing/Memory.lua | 4 +++- drawing/Processor.lua | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core b/core index 36cc286..17b93c4 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 36cc286cb33dff4a649bee9d8b2620f6033fd14a +Subproject commit 17b93c4cc6eb1ace1e79e388f710dd27fd069536 diff --git a/drawing/Memory.lua b/drawing/Memory.lua index 0bb9a26..445f53b 100644 --- a/drawing/Memory.lua +++ b/drawing/Memory.lua @@ -206,6 +206,8 @@ local draw_static = function(cr) Text.draw(swap.label, cr) TextColumn.draw(cache.labels, cr) + + Table.draw_static(tbl, cr) end local draw_dynamic = function(cr) @@ -220,7 +222,7 @@ local draw_dynamic = function(cr) LabelPlot.draw(plot, cr) - Table.draw(tbl, cr) + Table.draw_dynamic(tbl, cr) end M.draw_static = draw_static diff --git a/drawing/Processor.lua b/drawing/Processor.lua index 06d96a0..35a1a77 100644 --- a/drawing/Processor.lua +++ b/drawing/Processor.lua @@ -265,6 +265,8 @@ local draw_static = function(cr) Line.draw(separator, cr) Text.draw(total_load.label, cr) + + Table.draw_static(tbl, cr) end local draw_dynamic = function(cr) @@ -282,7 +284,7 @@ local draw_dynamic = function(cr) CriticalText.draw(total_load.value, cr) LabelPlot.draw(plot, cr) - Table.draw(tbl, cr) + Table.draw_dynamic(tbl, cr) end M.draw_static = draw_static