]> git.proxmox.com Git - pve-http-server.git/commitdiff
multipart upload: report duration with millisecond precision in syslog
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Sep 2022 15:03:34 +0000 (17:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Sep 2022 15:05:34 +0000 (17:05 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/APIServer/AnyEvent.pm

index 4204391710b725b8be8df6ed4b6f676bcdd78557..71c528266490741ff092fed46497df5ce7d72abe 100644 (file)
@@ -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);