[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [ernie/master 1/2] torperf-stats file is comma-separated, not space-separated.
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Wed, 14 Apr 2010 21:43:05 +0200
Subject: torperf-stats file is comma-separated, not space-separated.
Commit: e644e0cedf0b6b7d68977c1629421c5b79c08f6a
---
src/TorperfProcessor.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/TorperfProcessor.java b/src/TorperfProcessor.java
index 2d7c7de..853efad 100644
--- a/src/TorperfProcessor.java
+++ b/src/TorperfProcessor.java
@@ -169,15 +169,15 @@ public class TorperfProcessor {
if (lastSource == null) {
lastSource = parts[0];
} else if (!parts[0].equals(lastSource)) {
- dumpStats.append("\n" + lastSource + " " + lastLine.split(" ")[1]
- + " " + lastLine.split(" ")[2]);
+ dumpStats.append("\n" + lastSource + " " + lastLine.split(",")[1]
+ + " " + lastLine.split(",")[2]);
lastSource = parts[0];
}
lastLine = s;
}
if (lastSource != null) {
- dumpStats.append("\n" + lastSource + " " + lastLine.split(" ")[1]
- + " " + lastLine.split(" ")[2]);
+ dumpStats.append("\n" + lastSource + " " + lastLine.split(",")[1]
+ + " " + lastLine.split(",")[2]);
}
logger.info(dumpStats.toString());
}
--
1.6.5