summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2271bb4)
raw | patch | inline | side by side (parent: 2271bb4)
author | Florian Forster <ff@octo.it> | |
Tue, 15 Jun 2010 17:12:47 +0000 (19:12 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 15 Jun 2010 17:12:47 +0000 (19:12 +0200) |
graph.c | patch | blob | history |
index 154af77915f198f3525d788317fabdde6f6462bb..1a8f327a13f992b4cbe8aa33ff07c798ec9a4b22 100644 (file)
--- a/graph.c
+++ b/graph.c
char *title;
char *vertical_label;
+ _Bool show_zero;
graph_def_t *defs;
graph_config_get_string (child, &cfg->title);
else if (strcasecmp ("VerticalLabel", child->key) == 0)
graph_config_get_string (child, &cfg->vertical_label);
+ else if (strcasecmp ("ShowZero", child->key) == 0)
+ graph_config_get_bool (child, &cfg->show_zero);
else if (strcasecmp ("DEF", child->key) == 0)
def_config (cfg, child);
} /* for */
array_append (args, cfg->vertical_label);
}
+ if (cfg->show_zero)
+ {
+ array_append (args, "-l");
+ array_append (args, "0");
+ }
+
return (0);
} /* }}} int graph_get_rrdargs */