mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-01 14:18:33 +00:00
small indentation and code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d9b3838f27
commit
baf8c8dc0d
@ -1254,9 +1254,10 @@ sub file_upload_multipart {
|
||||
my $elapsed = tv_interval($rstate->{starttime});
|
||||
|
||||
my $rate = int($rstate->{bytes} / ($elapsed * 1024 * 1024));
|
||||
syslog('info', "multipart upload complete " .
|
||||
"(size: %d time: %ds rate: %.2fMiB/s md5sum: $rstate->{md5sum})",
|
||||
$rstate->{bytes}, $elapsed, $rate);
|
||||
syslog('info',
|
||||
"multipart upload complete (size: %d time: %ds rate: %.2fMiB/s md5sum: %s)",
|
||||
$rstate->{bytes}, $elapsed, $rate, $rstate->{md5sum}
|
||||
);
|
||||
$self->handle_api2_request($reqstate, $auth, $method, $path, $rstate);
|
||||
}
|
||||
}
|
||||
@ -1494,7 +1495,9 @@ sub unshift_read_header {
|
||||
outfh => $outfh,
|
||||
};
|
||||
$reqstate->{tmpfilename} = $tmpfilename;
|
||||
$reqstate->{hdl}->on_read(sub { $self->file_upload_multipart($reqstate, $auth, $method, $path, $state); });
|
||||
$reqstate->{hdl}->on_read(sub {
|
||||
$self->file_upload_multipart($reqstate, $auth, $method, $path, $state);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user