summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1de8938)
raw | patch | inline | side by side (parent: 1de8938)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 15 Jan 2006 12:31:03 +0000 (12:31 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 15 Jan 2006 12:31:03 +0000 (12:31 +0000) |
program/src/rrd_tool.c | patch | blob | history |
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 2e0bf9cf92e30b050887d48fec2e97b4dd5368d3..81c4bae95ff4687d0b509cdd5f68d90f27014584 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
double ymin,ymax;
int i;
int tostdout = (strcmp(argv[2],"-") == 0);
+ int imginfo = 0;
+ for (i=2;i<argc;i++){
+ if (strcmp(argv[i],"--imginfo") == 0 || strcmp(argv[i],"-f") == 0){
+ imginfo = 1;
+ break;
+ }
+ }
if( rrd_graph(argc-1, &argv[1], &calcpr, &xsize, &ysize, NULL, &ymin, &ymax) != -1 ) {
- if (!tostdout)
+ if (!tostdout && !imginfo)
printf ("%dx%d\n",xsize,ysize);
if (calcpr) {
for(i=0;calcpr[i];i++){