Greetz all!
Followin is a small patch to get the progress bars working in the web interface.
In ExternalConn.cpp there was an assignment missing, which made the bars having almost zero length.
The changes for PartFile.cpp are taken from the original emule code.
Regards,
JT.
PS: Is there any way to keep the tabs for the indentation if I post patches here?
RCS file: /cvsroot/amule/amule-cvs/src/ExternalConn.cpp,v
retrieving revision 1.10
diff -r1.10 ExternalConn.cpp
1180,1181c1180
< atoi(item.Mid(23+separator+1).GetData());
<
---
> progressbarWidth = atoi(item.Mid(23+separator+1).GetData());
1190d1188
<
Index: PartFile.cpp
===================================================================
RCS file: /cvsroot/amule/amule-cvs/src/PartFile.cpp,v
retrieving revision 1.12
diff -r1.12 PartFile.cpp
3024,3025c3024,3032
< char crWaiting='3'; // blue
< char crMissing='4'; // red
---
> char crMissing='3'; // red
>
> char crWaiting[6];
> crWaiting[0]='4'; // blue few source
> crWaiting[1]='5';
> crWaiting[2]='6';
> crWaiting[3]='7';
> crWaiting[4]='8';
> crWaiting[5]='9'; // full sources
3058c3065
< color = crWaiting;
---
> color = m_SrcpartFrequency < 10 ? crWaiting[m_SrcpartFrequency/2]:crWaiting[5];