Subject: Resume stats confusing at first glance
From: Marco Sirabella
Date: Thu, 9 Jan 2020 10:45:36 -0500
Hi,

A download stopped halfway through & I got a bit confused at the partial
download resuming, on a quick look it looked like it reset the download and was
downloading from start:

```
$ megadl 'https://mega.nz/#!4OwQ2S4b!6jEM5wDz1xN5PDiQNqbDFi9fMkS7tQUZufOXitu_LtI'
WARNING: chunk download failed (Server returned 509 (over quota)), re-trying after 2 secondsVOL. 3 - FLAC.zip: 18.74% - 764.8 MiB (801,943,240 bytes) of 4.0 GiB (5.5 MiB/s)
WARNING: chunk download failed (Server returned 509 (over quota)), re-trying after 4 secondsVOL. 3 - FLAC.zip: 18.82% - 768.0 MiB (805,306,368 bytes) of 4.0 GiB (1.1 MiB/s)
WARNING: chunk download failed (Server returned 509 (over quota)), re-trying after 8 secondsVOL. 3 - FLAC.zip: 18.82% - 768.0 MiB (805,306,368 bytes) of 4.0 GiB (0 bytes/s)

ERROR: Download failed for 'https://mega.nz/#!4OwQ2S4b!6jEM5wDz1xN5PDiQNqbDFi9fMkS7tQUZufOXitu_LtI': Data download failed: Server returned 509 (over quota)
$ megadl 'https://mega.nz/#!4OwQ2S4b!6jEM5wDz1xN5PDiQNqbDFi9fMkS7tQUZufOXitu_LtI'
GilvaSunner - FINAL BOUT _ SiIvaGunner- King for Another Day Tournament Original Soundtrack VOL. 3 - FLAC.zip: 17.03% - 564.1 MiB (591,552,816 bytes) of 3.2 GiB (2.0 MiB/s)
```

But if you look at the "file size" you'll see it's gone down! It makes more
sense if you think of that as "total amount needed to download", but from a
quick glance of the download statistics that is not obvious.

This, combined with the lack of any non-hidden files on my filesystem initially
led me to believe it was re-downloading the entire file.

Is this just confusing to me? What would be a better way to do this? I would
prefer just starting the download at "18% downloaded", which is intuitive to
me.

-- 
Marco Sirabella