Merge pull request #11 from runcommand/round-four

Round time to four decimal points, instead of 5
This commit is contained in:
Daniel Bachhuber 2016-08-24 13:35:01 -07:00 committed by GitHub
commit 295198dd52

View file

@ -88,9 +88,9 @@ class Profile_Command {
foreach( $this->scope_log as $scope => $data ) {
foreach( $data as $key => $value ) {
// Round times to 5 decimal points
// Round times to 4 decimal points
if ( stripos( $key,'_time' ) ) {
$this->scope_log[ $scope ][ $key ] = round( $value, 5 ) . 's';
$this->scope_log[ $scope ][ $key ] = round( $value, 4 ) . 's';
}
}
}