From deed70cb2b51b6f87d9715ea54ffcb2e8081052f Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 24 Aug 2016 13:33:12 -0700 Subject: [PATCH] Round time to four decimal points, instead of 5 5 is too many --- inc/class-profile-command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/class-profile-command.php b/inc/class-profile-command.php index e04d18c..b52fa3e 100644 --- a/inc/class-profile-command.php +++ b/inc/class-profile-command.php @@ -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'; } } }