diff --git a/sargraph.py b/sargraph.py index bc73e70..ecb55e5 100755 --- a/sargraph.py +++ b/sargraph.py @@ -195,9 +195,6 @@ g("unset key") g("set rmargin 6") g("set terminal pngcairo size 1200,800 background '#222222' font 'Courier-New,8'") -g("set output 'plot.png'") - -g("set multiplot layout 2,1 title \"%s\"" % "\\n\\n\\n") signal.signal(signal.SIGTERM, kill_handler) i = 0 @@ -261,6 +258,11 @@ if i == 0: time.sleep(1) sys.exit(0) +g("set output 'plot.png'") + +g("set multiplot layout 2,1 title \"%s\"" % "\\n\\n\\n") + + AVERAGE_LOAD = AVERAGE_LOAD / float(i) MAX_USED_RAM = MAX_USED_RAM / 1024.0 / 1024.0