summaryrefslogtreecommitdiff
path: root/package/mtr/patches/patch-report_c
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/mtr/patches/patch-report_c
Initial import
Diffstat (limited to 'package/mtr/patches/patch-report_c')
-rw-r--r--package/mtr/patches/patch-report_c30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/mtr/patches/patch-report_c b/package/mtr/patches/patch-report_c
new file mode 100644
index 000000000..bbae19253
--- /dev/null
+++ b/package/mtr/patches/patch-report_c
@@ -0,0 +1,30 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mtr-0.75.orig/report.c 2008-09-18 14:40:09.000000000 +0200
++++ mtr-0.75/report.c 2008-10-10 15:05:00.000000000 +0200
+@@ -122,7 +122,7 @@ void report_close(void)
+ if (j < 0) continue;
+
+ /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */
+- if( index( data_fields[j].format, 'f' ) ) {
++ if( strchr( data_fields[j].format, 'f' ) ) {
+ snprintf( buf + len, sizeof(buf), data_fields[j].format,
+ data_fields[j].net_xxx(at) /1000.0 );
+ } else {
+@@ -201,7 +201,7 @@ void xml_close(void)
+ strcat(name, data_fields[j].format);
+ strcat(name, "</%s>\n");
+ /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */
+- if( index( data_fields[j].format, 'f' ) ) {
++ if( strchr( data_fields[j].format, 'f' ) ) {
+ printf( name,
+ data_fields[j].title,
+ data_fields[j].net_xxx(at) /1000.0,
+@@ -280,7 +280,7 @@ void csv_close(void)
+ if (j < 0) continue;
+
+ /* 1000.0 is a temporay hack for stats usec to ms, impacted net_loss. */
+- if( index( data_fields[j].format, 'f' ) ) {
++ if( strchr( data_fields[j].format, 'f' ) ) {
+ printf( ", %.2f", data_fields[j].net_xxx(at) / 1000.0);
+ } else {
+ printf( ", %d", data_fields[j].net_xxx(at) );