aMule Forum

English => en_Bugs => Topic started by: lemonfan on January 29, 2004, 08:32:05 PM

Title: Small fix for web interface
Post by: lemonfan on January 29, 2004, 08:32:05 PM
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];
Title: Re: Small fix for web interface
Post by: Kry on January 29, 2004, 08:36:15 PM
Try using
Code: [Select]
Title: Re: Small fix for web interface
Post by: shakraw on January 29, 2004, 10:44:59 PM
missing assignment fixed and progressbar patch added ;)

good job lemonfan,
thx
Title: Re: Small fix for web interface
Post by: Kry on January 30, 2004, 12:10:42 AM
2ยบ addition on changelog, lemonfan. keep the good work.