summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f30b8d2)
raw | patch | inline | side by side (parent: f30b8d2)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 10 Sep 2010 09:16:49 +0000 (09:16 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 10 Sep 2010 09:16:49 +0000 (09:16 +0000) |
program/src/rrd_graph.c | patch | blob | history |
index dcc20241120b7bf70875e853bc04740869d68451..b9d954757fdfeb979371a677ede66a6a7fadf793 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
}
} /* prepare printval */
- if ((percent_s = strstr(im->gdes[i].format, "%S")) != NULL) {
+ if (!im->gdes[i].strftm && (percent_s = strstr(im->gdes[i].format, "%S")) != NULL) {
/* Magfact is set to -1 upon entry to print_calc. If it
* is still less than 0, then we need to run auto_scale.
* Otherwise, put the value into the correct units. If
printval /= magfact;
}
*(++percent_s) = 's';
- } else if (strstr(im->gdes[i].format, "%s") != NULL) {
+ } else if (!im->gdes[i].strftm && strstr(im->gdes[i].format, "%s") != NULL) {
auto_scale(im, &printval, &si_symb, &magfact);
}