summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2dec4d1)
raw | patch | inline | side by side (parent: 2dec4d1)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2129 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index f43e9ada15026eac6bf9e5ea30e6c942bedf1489..5573e1630921f23726fbb80e9c5ce4a5e45182ad 100644 (file)
--- a/src/rrd_graph.c
+++ b/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);
}