mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Round time to four decimal points, instead of 5
5 is too many
This commit is contained in:
parent
fba6476df7
commit
deed70cb2b
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue