From 65e15ad327bd1b2aec43f625076ea57d2300986b Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 7 Dec 2021 10:54:09 +0100 Subject: [PATCH] memleak: Do not allow swap range (y2) to go under 0. --- memleak/memory-consumption-over-time.gp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/memleak/memory-consumption-over-time.gp b/memleak/memory-consumption-over-time.gp index 5b4f2d0..ccfbb5d 100755 --- a/memleak/memory-consumption-over-time.gp +++ b/memleak/memory-consumption-over-time.gp @@ -77,6 +77,8 @@ set terminal svg enhanced background rgb 'white' size mysize[1],mysize[2] \ dynamic font myfont set output sprintf("%s memory consumption over time.svg", myprog) +set y2range [0:] # Don't go into minus if Swap is 0 the whole time. + plot infile every 4::0 using ((timecolumn(2) - mystarttime)):($3/1024) title 'USS' \ with linespoints linewidth 3 pointtype 7 pointsize 0.5, \ \