X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_graph.c;h=3c2795aeba697993d95053a92873dfa5006996f9;hp=898b6ff9c8e7dce2eecb3a2359e4615ba135d7b2;hb=6a6710c10c23a986534f4a8971162afa2813c363;hpb=f8a299184c27cbc7f15d7ce9172bf89f121f0705 diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 898b6ff..3c2795a 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1582,7 +1582,7 @@ int print_calc( } } /* 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 @@ -1596,7 +1596,7 @@ int print_calc( 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); }