mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-07-17 13:07:14 +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
@ -1253,10 +1253,11 @@ sub file_upload_multipart {
|
|||||||
} else {
|
} else {
|
||||||
my $elapsed = tv_interval($rstate->{starttime});
|
my $elapsed = tv_interval($rstate->{starttime});
|
||||||
|
|
||||||
my $rate = int($rstate->{bytes}/($elapsed*1024*1024));
|
my $rate = int($rstate->{bytes} / ($elapsed * 1024 * 1024));
|
||||||
syslog('info', "multipart upload complete " .
|
syslog('info',
|
||||||
"(size: %d time: %ds rate: %.2fMiB/s md5sum: $rstate->{md5sum})",
|
"multipart upload complete (size: %d time: %ds rate: %.2fMiB/s md5sum: %s)",
|
||||||
$rstate->{bytes}, $elapsed, $rate);
|
$rstate->{bytes}, $elapsed, $rate, $rstate->{md5sum}
|
||||||
|
);
|
||||||
$self->handle_api2_request($reqstate, $auth, $method, $path, $rstate);
|
$self->handle_api2_request($reqstate, $auth, $method, $path, $rstate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1494,7 +1495,9 @@ sub unshift_read_header {
|
|||||||
outfh => $outfh,
|
outfh => $outfh,
|
||||||
};
|
};
|
||||||
$reqstate->{tmpfilename} = $tmpfilename;
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user