in reply to rearrange data to min, avg, max
Then I simply looped through the keys of $data_counter and computed averages by dividing $data_avg/$data_counter I'll definetly look at all the suggestions and make use of them. Thanks much.$data_min{"$timestamp"} = $seconds if (!$data_min{"$timestamp" +}); $data_min{"$timestamp"} = $seconds if ($seconds<$data_min{"$ti +mestamp"}); $data_max{"$timestamp"} = $seconds if ($seconds>$data_max{"$ti +mestamp"}); $data_avg{"$timestamp"}+= $seconds; $data_counter{"$timestamp"} ++;
|
|---|