aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Small fix for web interface  (Read 3196 times)

lemonfan

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Small fix for web interface
« 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];
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Small fix for web interface
« Reply #1 on: January 29, 2004, 08:36:15 PM »

Try using
Code: [Select]
Logged

shakraw

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
Re: Small fix for web interface
« Reply #2 on: January 29, 2004, 10:44:59 PM »

missing assignment fixed and progressbar patch added ;)

good job lemonfan,
thx
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Small fix for web interface
« Reply #3 on: January 30, 2004, 12:10:42 AM »

2ยบ addition on changelog, lemonfan. keep the good work.
Logged