Nzb Checker issue?

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Nzb Checker issue?

Post by tymanthius »

Noticed this on a movie I tried to download last night:

» Download would not be successful, only 100.0% available

I'm a little curious how a 100% available download could fail. :D

Let me know how I can give additional info so you can troubleshoot. :)

This Beta3 running on Ubuntu 10.04 headless server.
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: Nzb Checker issue?

Post by sander »

Hahaha! Could that be the rounded form of something like "only 99.95% available"? So rounded from two (or more) decimals to one decimal?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Nzb Checker issue?

Post by shypike »

It could be a rounding error. Even a single byte short would still mean unrepairable.
However, keep in mind that the check can never be 100.000% accurate.
It's up to you to decide.
Having said that, 100.0% should not have been shown here, precisely because it is unclear.
99.9% should be the maximum number shown.
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: Nzb Checker issue?

Post by tymanthius »

shypike wrote:It could be a rounding error. Even a single byte short would still mean unrepairable.
However, keep in mind that the check can never be 100.000% accurate.
It's up to you to decide.
Having said that, 100.0% should not have been shown here, precisely because it is unclear.
99.9% should be the maximum number shown.

Kind of what I thought. Not a big deal really, but I thought I'd bring it to your attention as this is still a very new feature.
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: Nzb Checker issue?

Post by sander »

shypike wrote: Having said that, 100.0% should not have been shown here, precisely because it is unclear.
99.9% should be the maximum number shown.

Code: Select all

ratio = 0.9995

emsg = '%.1f%%' % (ratio * 100.0)
emsg = 'Download would not be successful, only %s available' % emsg
print emsg


emsg = '%d%%' % (ratio * 100.0)
emsg = 'Download would not be successful, only %s available' % emsg
print emsg
with the following result:

Code: Select all

sander@R540:~$ python wwwww.py 
Download would not be successful, only 100.0% available
Download would not be successful, only 99% available
sander@R540:~$
So using %d gives two better results:
- rounding down, no more "100.0%"
- no false idea that the measurement is exact in 1 decimal after the point
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Nzb Checker issue?

Post by shypike »

Fixed for the next Beta.
tymanthius
Jr. Member
Jr. Member
Posts: 74
Joined: March 6th, 2012, 9:35 pm

Re: Nzb Checker issue?

Post by tymanthius »

Awesome! Thanks guys!
Post Reply