The rrdtoolmodule.so should be installed in pyexecdir instead of pythondir (they...
[rrdtool.git] / src / rrd_graph.c
index 77a401a..67d7f05 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * RRDtool 1.2.12  Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.13  Copyright by Tobi Oetiker, 1997-2006
  ****************************************************************************
  * rrd__graph.c  produce graphs from data in rrdfiles
  ****************************************************************************/
@@ -1752,9 +1752,10 @@ horizontal_log_grid(image_desc_t   *im)
           if (im->extra_flags & FORCE_UNITS_SI) {
              double pvalue = value * yloglab[majoridx][i];
              double scale = floor( log10( fabs(pvalue)) / 3);
+             char symbol;
+
              pvalue /= pow(10, 3*scale);
 
-             char symbol;
              if ( ((scale+si_symbcenter) < sizeof(si_symbol)) &&
                   ((scale+si_symbcenter) >= 0) )
                 symbol = si_symbol[(int)scale+si_symbcenter];