From: Thomas Lamprecht Date: Thu, 29 Sep 2022 15:03:34 +0000 (+0200) Subject: multipart upload: report duration with millisecond precision in syslog X-Git-Url: https://git.proxmox.com/?p=pve-http-server.git;a=commitdiff_plain;h=32163b8e11b65afcc409193a718492af0ae4995e multipart upload: report duration with millisecond precision in syslog Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm index 4204391..71c5282 100644 --- a/src/PVE/APIServer/AnyEvent.pm +++ b/src/PVE/APIServer/AnyEvent.pm @@ -1253,8 +1253,7 @@ sub file_upload_multipart { if ($rstate->{phase} == 100) { # Phase 100 - transfer finished $rstate->{md5sum} = $rstate->{ctx}->hexdigest; my $elapsed = tv_interval($rstate->{starttime}); - - syslog('info', "multipart upload complete (size: %d time: %.1fs rate: %.2fMiB/s md5sum: %s)", + syslog('info', "multipart upload complete (size: %dB time: %.3fs rate: %.2fMiB/s md5sum: %s)", $rstate->{bytes}, $elapsed, $rstate->{bytes} / ($elapsed * 1024 * 1024), $rstate->{md5sum} ); $self->handle_api2_request($reqstate, $auth, $method, $path, $rstate);