]> git.decadent.org.uk Git - dak.git/commitdiff
Improve the label text and formatting of the labels for the queue graphs.
authorPaul Wise <pabs@debian.org>
Sun, 20 Feb 2011 07:57:20 +0000 (15:57 +0800)
committerJoerg Jaspert <joerg@debian.org>
Sun, 20 Feb 2011 10:03:11 +0000 (11:03 +0100)
Rename the queue graph labels to ones shorter and of equal length.

Don't attempt to merge the numbers into the label, use cur instead.

Also use labels that are more indicative of their meaning.

Don't force the numbers to 3 digits in length.

Turn Min/Max/Avg in the labels to lower case.

dak/graph.py

index 6691f929757bb22c75d5ce7e785df8d34ac69000..b900b3eab7fd8eb66ba780922e9927d74b176a47 100755 (executable)
@@ -74,26 +74,26 @@ packages
 
     rrd_args += ("""
 DEF:ds1=%s:ds1:AVERAGE
-LINE2:ds1#D9382B:Total package count:
+LINE2:ds1#D9382B:changes count
 VDEF:lds1=ds1,LAST
 VDEF:minds1=ds1,MINIMUM
 VDEF:maxds1=ds1,MAXIMUM
 VDEF:avgds1=ds1,AVERAGE
-GPRINT:lds1:%%3.0lf
-GPRINT:minds1:\tMin\\: %%3.0lf
-GPRINT:maxds1:\tMax\\: %%3.0lf
-GPRINT:avgds1:\tAvg\\: %%3.0lf\\j
+GPRINT:lds1:cur\\: %%.0lf
+GPRINT:minds1:min\\: %%.0lf
+GPRINT:maxds1:max\\: %%.0lf
+GPRINT:avgds1:avg\\: %%.0lf\\j
 DEF:ds0=%s:ds0:AVERAGE
 VDEF:lds0=ds0,LAST
 VDEF:minds0=ds0,MINIMUM
 VDEF:maxds0=ds0,MAXIMUM
 VDEF:avgds0=ds0,AVERAGE
-LINE2:ds0#3069DA:Package count in %s:
-GPRINT:lds0:%%3.0lf
-GPRINT:minds0:\tMin\\: %%3.0lf
-GPRINT:maxds0:\tMax\\: %%3.0lf
-GPRINT:avgds0:\tAvg\\: %%3.0lf\\j
-""" % (rrd_file, rrd_file, name.upper())).strip().split("\n")
+LINE2:ds0#3069DA:src pkg count
+GPRINT:lds0:cur\\: %%.0lf
+GPRINT:minds0:min\\: %%.0lf
+GPRINT:maxds0:max\\: %%.0lf
+GPRINT:avgds0:avg\\: %%.0lf\\j
+""" % (rrd_file, rrd_file)).strip().split("\n")
 
     rrd_args += extra_args
     try: