forgot to commit
This commit is contained in:
parent
5f00e5efb6
commit
cc72456672
7
main.go
7
main.go
|
@ -156,14 +156,17 @@ func processBuckets(set map[string]*Bucket) {
|
|||
bucket := set[host]
|
||||
var longest time.Duration
|
||||
var shortest time.Duration
|
||||
shortest = 9999 * time.Minute // make this absurdly large so everything is smaller
|
||||
var total time.Duration
|
||||
|
||||
for _, entry := range bucket.Entries {
|
||||
if shortest == 0 {
|
||||
shortest = entry.TimeTook
|
||||
}
|
||||
|
||||
switch true {
|
||||
case entry.TimeTook > longest:
|
||||
longest = entry.TimeTook
|
||||
case entry.TimeTook < shortest:
|
||||
case shortest > entry.TimeTook:
|
||||
shortest = entry.TimeTook
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue