aMule Forum
English => aMule Help => Topic started by: morph on May 26, 2006, 08:21:58 PM
-
Hi all,
I don't know where to post this, so I'm posting here 8)
I'd like to talk about completeness of shared files. As of now, files is marked as complete, if there exists a "really" complete file somewhere.
But the following situations are in a middle-of-nowhere:
O = completed chunk
x = missing chunk
[00xxx00x0]
[x00000x00]
-----------
[121112112] sum of available chunk
[xxxxxx00x]
[0000000x0]
-----------
[111111211]
(hope it's clear enough).
Here is the intersection of available chunks that lead to a completed source.
I understand that a completed file somewhere is rather different from those situation, but should they be highlighted somehow?
Cheers,
Sandro
-
In other words, you want to check whether 100% of a file are available or whether it's a dead file?
Something like this is already implemented in the code:
PartFile.cpp lines 1764 - 1775
// Find number of available parts
uint16 availablecounter = 0;
for ( uint16 i = 0; i < partcount; ++i ) {
if ( m_SrcpartFrequency[i] )
++availablecounter;
}
if ( ( availablecounter == partcount ) && ( m_availablePartsCount < partcount ) ) {
lastseencomplete = time(NULL);
}
m_availablePartsCount = availablecounter;
(It's used for the 'last seen complete' - column in the transfer-window.)
-
my question rose because amulegui doesnt show as complete (column 'last seen complete' set to 'Unknown') a file that match the second pattern show above. I'm using cvs-20060525 snapshot. Dont know what to say....
-
I can't look now, but iirc I have a file 56% completet, and one other source has something around 52%. The file is complete, but shown as last seen complete somewhere in the middle of the last year. I can't look before tommorow evening, but iirc it's like I said.
-
Originally posted by morph
my question rose because amulegui doesnt show as complete (column 'last seen complete' set to 'Unknown') a file that match the second pattern show above. I'm using cvs-20060525 snapshot. Dont know what to say....
I can just guess, that this is one of the features which are not implemented in amulegui yet.
I'm too lazy to take a look in the code right now, but a file which has some 100% sources shows yesterday afternoon as the last seen complete date. Therefore it's probably checked periodically, but I don't have a clue in which time span.