mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 04:08:59 +01:00
Compare commits
2 Commits
9003c4fe50
...
723b0323e3
Author | SHA1 | Date | |
---|---|---|---|
|
723b0323e3 | ||
642e62551b |
@ -393,6 +393,9 @@ trait Files
|
||||
}
|
||||
await($promises, $cancellation);
|
||||
await($resPromises, $cancellation);
|
||||
if ($totalSize === 0) {
|
||||
throw new AssertionError('You uploaded an empty file!');
|
||||
}
|
||||
$time = microtime(true) - $start;
|
||||
$speed = (int) ($totalSize * 8 / $time) / 1000000;
|
||||
if (!$size) {
|
||||
|
Loading…
Reference in New Issue
Block a user