aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: State "completing"?  (Read 2731 times)

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
State "completing"?
« on: September 27, 2005, 07:07:04 PM »

Hi
Does anyone know what is amule exactly doing when a file is in state 'completing'?
It can sit there for hours...
Thanks
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: State "completing"?
« Reply #1 on: September 27, 2005, 07:58:33 PM »

aMule calculates the hash for the file and tests wheter the file is OK or corrupt (calculated hash differs from the given).
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: State "completing"?
« Reply #2 on: September 27, 2005, 08:25:36 PM »

Thank you wuischke.
Isn't the hash calculated before for each chunk?
How can the hash then be wrong for the complete file?
Logged

Ramiro

  • Jr. Member
  • **
  • Karma: 1
  • Offline Offline
  • Posts: 71
Re: State "completing"?
« Reply #3 on: September 27, 2005, 08:28:45 PM »

By the way, I should say I'm running amule on a NSLU2, with only 32MB of RAM and a 133MHz ARM. Is the process of calculating the hash very CPU or RAM consuming?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: State "completing"?
« Reply #4 on: September 27, 2005, 08:32:21 PM »

yup it definetly is...
and then amule has to move the compleded file from teh temp to the incomming folder
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: State "completing"?
« Reply #5 on: September 27, 2005, 09:08:57 PM »

I would guess, that it consumes more CPU than RAM, but your system is pretty weak for such things...
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: State "completing"?
« Reply #6 on: September 27, 2005, 09:29:20 PM »

Quote
Originally posted by Ramiro
Isn't the hash calculated before for each chunk?
How can the hash then be wrong for the complete file?

Yes, the hash for each chunk is calculated when that chunk is finished downloading. It is just a precaution that after the whole file is finished everything is rechecked. It should never give errors, but it's an old rule: "Better safe than sorry."
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.