From 1656cb0cc007f00a02aa46e3b311cf15dc4694b2 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Wed, 22 Jul 2015 16:43:29 +0200 Subject: [PATCH] fixed legend alignment in the main graph --- lib/zfs.pm | 56 +++++++++++++++++++++++++++--------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/zfs.pm b/lib/zfs.pm index d96f3f5..0e49b43 100644 --- a/lib/zfs.pm +++ b/lib/zfs.pm @@ -430,46 +430,46 @@ sub zfs_cgi { print(" \n"); } push(@tmp, "LINE2:arcsize#44EE44:ARC size"); - push(@tmp, "GPRINT:arcsize:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:arcsize:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:arcsize:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:arcsize:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:arcsize:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:arcsize:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:arcsize:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:arcsize:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:arcsize#44EE44:ARC size"); push(@tmp, "LINE2:cmax#EE4444:Maximum ARC size"); - push(@tmp, "GPRINT:cmax:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmax:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmax:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmax:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:cmax:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmax:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmax:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmax:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:cmax#EE4444:Maximum ARC size"); push(@tmp, "LINE2:cmin#EE4444:Minimum ARC size"); - push(@tmp, "GPRINT:cmin:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmin:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmin:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:cmin:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:cmin:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmin:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmin:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:cmin:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:cmin#EE4444:Minimum ARC size"); push(@tmp, "LINE2:c#EEEE44:ARC target size"); - push(@tmp, "GPRINT:c:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:c:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:c:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:c:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:c:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:c:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:c:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:c:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:c#EEEE44:ARC target size"); push(@tmp, "LINE2:limit#EE44EE:ARC meta limit"); - push(@tmp, "GPRINT:limit:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:limit:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:limit:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:limit:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:limit:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:limit:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:limit:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:limit:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:limit#EE44EE:ARC meta limit"); push(@tmp, "LINE2:max#4444EE:ARC meta max"); - push(@tmp, "GPRINT:max:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:max:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:max:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:max:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:max:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:max:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:max:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:max:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:max#4444EE:ARC meta max"); push(@tmp, "LINE2:used#44EEEE:ARC meta used"); - push(@tmp, "GPRINT:used:LAST: Cur\\: %4.1lf%s"); - push(@tmp, "GPRINT:used:AVERAGE: Avg\\: %4.1lf%s"); - push(@tmp, "GPRINT:used:MIN: Min\\: %4.1lf%s"); - push(@tmp, "GPRINT:used:MAX: Max\\: %4.1lf%s\\n"); + push(@tmp, "GPRINT:used:LAST: Cur\\: %5.1lf%s"); + push(@tmp, "GPRINT:used:AVERAGE: Avg\\: %5.1lf%s"); + push(@tmp, "GPRINT:used:MIN: Min\\: %5.1lf%s"); + push(@tmp, "GPRINT:used:MAX: Max\\: %5.1lf%s\\n"); push(@tmpz, "LINE2:used#44EEEE:ARC meta used"); if(lc($config->{show_gaps}) eq "y") { push(@tmp, "AREA:wrongdata#$colors->{gap}:");