forgot to commit

This commit is contained in:
Cadey Ratio 2017-01-25 11:38:16 -08:00
parent 5f00e5efb6
commit cc72456672
1 changed files with 5 additions and 2 deletions

View File

@ -156,14 +156,17 @@ func processBuckets(set map[string]*Bucket) {
bucket := set[host] bucket := set[host]
var longest time.Duration var longest time.Duration
var shortest time.Duration var shortest time.Duration
shortest = 9999 * time.Minute // make this absurdly large so everything is smaller
var total time.Duration var total time.Duration
for _, entry := range bucket.Entries { for _, entry := range bucket.Entries {
if shortest == 0 {
shortest = entry.TimeTook
}
switch true { switch true {
case entry.TimeTook > longest: case entry.TimeTook > longest:
longest = entry.TimeTook longest = entry.TimeTook
case entry.TimeTook < shortest: case shortest > entry.TimeTook:
shortest = entry.TimeTook shortest = entry.TimeTook
} }