Code

shorten space for y-axis labels a bit
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 8 May 2005 16:01:40 +0000 (16:01 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 8 May 2005 16:01:40 +0000 (16:01 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@515 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 95f438bc3d803b2afc80b07dfc6d232b54eba294..76115eceef47bfe1f278c4acd5330c77ae97fd55 100644 (file)
@@ -2151,7 +2151,7 @@ graph_size_location(image_desc_t *im, int elements
     }
 
     if (im->ylegend[0] != '\0' ) {
-           Xvertical = im->text_prop[TEXT_PROP_UNIT].size *2;
+           Xvertical = im->text_prop[TEXT_PROP_UNIT].size *1.6;
     }
 
 
@@ -2804,7 +2804,7 @@ rrd_graph_init(image_desc_t *im)
     im->minval = DNAN;
     im->maxval = DNAN;    
     im->unitsexponent= 9999;
-    im->unitslength= 6
+    im->unitslength= 5
     im->symbol = ' ';
     im->viewfactor = 1.0;
     im->extra_flags= 0;