Changeset: bbf823cb5307 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=bbf823cb5307
Modified Files:
        clients/mapiclient/tomograph.c
Branch: Feb2013
Log Message:

fixed CPU plot


diffs (19 lines):

diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -881,12 +881,12 @@ static void showcpu(void)
        fprintf(gnudata, "unset border\n");
 
        fprintf(gnudata, "set xrange ["LLFMT".0:"LLFMT".0]\n", startrange, 
lastclktick - starttime);
-       fprintf(gnudata, "set yrange [0:%d.%d]\n", cpus, cpus);
+       fprintf(gnudata, "set yrange [0:%d*1.1]\n", cpus);
        if (cpus)
                fprintf(gnudata, "plot ");
        for (i = 0; i < cpus; i++)
-               fprintf(gnudata, "\"%s_cpu.dat\" using 1:($%d+%d.%d) notitle 
with lines linecolor rgb \"%s\"%s",
-                               (tracefile ? "scratch" : filename), i + 2, i, 
i, (i % 2 == 0 ? "black" : "red"), (i < cpus - 1 ? ",\\\n" : "\n"));
+               fprintf(gnudata, "\"%s_cpu.dat\" using 1:($%d+(%d*1.1)) notitle 
with lines linecolor rgb \"%s\"%s",
+                               (tracefile ? "scratch" : filename), i + 2, i, 
(i % 2 == 0 ? "black" : "red"), (i < cpus - 1 ? ",\\\n" : "\n"));
        fprintf(gnudata, "unset yrange\n");
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to