Bug 161804 - [KDE 4] Ktorrent resume download calculates full download size
Summary: [KDE 4] Ktorrent resume download calculates full download size
Status: RESOLVED FIXED
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-08 18:35 UTC by Ben Kevan
Modified: 2008-05-11 11:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kevan 2008-05-08 18:35:09 UTC
Version:           ktorrent-3.0.2-2.13 (using KDE 4.0.3)
Installed from:    SuSE RPMs
OS:                Linux

This is hard to explain, but this is the best I can do. 

rpm -qa | grep ktorrent
ktorrent-lang-3.0.2-2.13
ktorrent-3.0.2-2.13

I was download openSUSE 11.0 Beta 2 and in the middle I closed ktorrent. Prior
to starting the download I had 6GB's free space. I started downloading and I
had 3GB's downloaded and had restarted ktorrent. However, ktorrent said I
didn't have enough free space to download the torrent. 

I still had 3GB's left and only 1.2GB left to download, yet ktorrent wanted to
have the full 4.2GB's free space for downloading. 

I free'd up some space and then was able to download. 

Seems like ktorrent on kde4 does not calculate free space needs by what is
still needed to download, but the full package no matter if a % of the file is
already downloaded.
Comment 1 Joris Guisson 2008-05-10 10:12:39 UTC
What kind of file system is this ?
Comment 2 Ben Kevan 2008-05-11 05:57:14 UTC
ext3
Comment 3 Joris Guisson 2008-05-11 11:23:51 UTC
SVN commit 806381 by guisson:

- Fix tooltip in network pref page
- Use fstat64 if possible to calculate disk usage of CacheFile, should fix diskspace check for files larger then 4 GB

BUG: 161804


 M  +0 -6      ktorrent/networkpref.ui  
 M  +7 -2      libbtcore/diskio/cachefile.cpp  
 M  +3 -0      libbtcore/torrent/torrentcontrol.cpp  
 M  +1 -1      libktcore/torrent/queuemanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=806381