r102739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102738‎ | r102739 | r102740 >
Date:02:06, 11 November 2011
Author:asher
Status:deferred
Tags:
Comment:
remove trailing space from samples string for cleaner parsing
Modified paths:
  • /trunk/udpprofile/export.c (modified) (history)

Diff [purge]

Index: trunk/udpprofile/export.c
@@ -75,9 +75,10 @@
7676 } else {
7777 points = entry->pf_count;
7878 }
79 - for (i=0; i<points; i++) {
 79+ for (i=0; i<points-1; i++) {
8080 fprintf(fd,"%lf ", entry->pf_reals[i]);
8181 }
 82+ fprintf(fd,"%lf", entry->pf_reals[points-1]);
8283 fprintf(fd,"\" />\n" \
8384 "</stats></event>\n");
8485 }

Status & tagging log