Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kssingvo
bidwatcher
bidwatcher-1.3.17-changes_20080601.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bidwatcher-1.3.17-changes_20080601.patch of Package bidwatcher
--- bidwatcher-1.3.17/helpers.cpp.orig 2008-06-16 19:17:37.000000000 +0200 +++ bidwatcher-1.3.17/helpers.cpp 2008-06-16 21:34:15.000000000 +0200 @@ -1538,6 +1538,7 @@ bool auctioninfo::parseaucinfo(const cha if (!SellerRate[0]) { char *p; + int i; unsigned int src, dst; // New changes: 2006-SEP-21 @@ -1574,7 +1575,7 @@ bool auctioninfo::parseaucinfo(const cha // Example: Score: 1762 | 99.9% Positive // Example: Score: Private | 97.0% Positive if (!Feedbackn[0]) { - char TmpLine[6]; + char TmpLine[10]; unsigned int count=0, f_len=0; int limit=0; int i=0, j=0; @@ -1610,6 +1611,27 @@ bool auctioninfo::parseaucinfo(const cha } else DPRINTF(DLOW, ("Score: p[count+1] is not '|': >%c<, count=%d\n", p[count+1], count)); TmpLine[i] = '\0'; + for (j=0, count=0; j<i; j++) { + if (TmpLine[j] == '.') + count++; + if (count>1) + break; + } + if (!strncmp(TmpLine, "100100%", 7) || count>1) { + f_len /= 2; + for (j=0; j<f_len; j++) + Feedbackn[f_len+j] = '\0'; + if (count > 1) { + for (j=0; j<i; j++) { + if (TmpLine[j] == '.') + break; + } + TmpLine[j+2] = '%'; + TmpLine[j+3] = '\0'; + } else { + strcpy(TmpLine, "100%"); + } + } if (i) { int a1= 6; //a1 = sizeof(Feedbackn)-strlen(TmpLine)-1; if (f_len < a1) { @@ -1678,6 +1700,10 @@ bool auctioninfo::parseaucinfo(const cha break; BidderRate[count] = p[count-1]; } + // Ugly hack: we have duplicates entries in the Rating. Half it. + if ((count-1)%2==0 && BidderRate[1]==BidderRate[(count+1)/2]) { + count = (count +1 ) / 2; + } BidderRate[count] = ')'; BidderRate[count+1] = '\0'; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor