Revision 5f3adef4 rep/getpeers.c

View differences:

rep/getpeers.c
18 18

  
19 19
        sprintf(uri, "/GetPeers?maxresults=%d&%s%s%s",  
20 20
		maxResults, constraints2str(cons, clen), 
21
		(rlen ? "&" : ""), rankings2str(ranks, rlen));
21
		(clen ? "&" : ""), rankings2str(ranks, rlen));
22 22
	if (ch) {
23 23
		if (clen + rlen > 0) strcat(uri, "&");
24 24
		strcat(uri, "channel=");
......
58 58
	char tmp[128];
59 59

  
60 60
	if (i) strcat(tmp, ";");
61
	sprintf(tmp, "%s,%f", ranks[i].published_name, ranks[i].weight);
61
	sprintf(tmp, "%s,%lf", ranks[i].published_name, ranks[i].weight);
62 62
	strcat(buf, tmp);
63 63
	}
64 64
return buf;

Also available in: Unified diff