X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fqueue_report.py;h=98c80f0af85dd0b50bcbed1e6e8b856b80a2d11e;hb=fdd9528a381f1472a93f52877e75858e6ed8570b;hp=84f6a22f23946139349199b27afa46f3597a7f52;hpb=a65e0344c6e01c23d7764ff485769d0a3cd39c35;p=dak.git diff --git a/dak/queue_report.py b/dak/queue_report.py index 84f6a22f..98c80f0a 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -37,6 +37,10 @@ from copy import copy import glob, os, stat, sys, time import apt_pkg +try: + import rrdtool +except ImportError: + pass from daklib import utils from daklib.queue import Upload @@ -60,6 +64,7 @@ Prints a report of packages in queue directories (usually new and byhand). -s, --sort=key sort output according to key, see below. -a, --age=key if using sort by age, how should time be treated? If not given a default of hours will be used. + -r, --rrd=key Directory where rrd files to be updated are stored -d, --directories=key A comma seperated list of queues to be scanned Sorting Keys: ao=age, oldest first. an=age, newest first. @@ -217,6 +222,7 @@ def header(): def footer(): print "

Timestamp: %s (UTC)

" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) + print "

There are graphs about the queues available.

" print """