don't show hourly perf. graph if few datapoints

This commit is contained in:
Damien Elmes 2012-05-23 13:08:51 +09:00
parent a84a95cb1a
commit c236bc8327

View file

@ -504,6 +504,8 @@ order by thetype, ease""" % lim)
mcount = d[2] mcount = d[2]
shifted.sort() shifted.sort()
counts.sort() counts.sort()
if len(counts) < 4:
return ""
for d in shifted: for d in shifted:
hour = d[0] hour = d[0]
pct = d[1] pct = d[1]