commit 193dad703356a2d145e4f6d5ea838cc54534b4cc Author: Karsten Loesing karsten.loesing@gmx.net Date: Thu May 31 15:13:21 2012 +0200
Add @type annotation to GetTor stats file. --- src/org/torproject/ernie/db/GetTorDownloader.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/ernie/db/GetTorDownloader.java b/src/org/torproject/ernie/db/GetTorDownloader.java index dfcdc16..f1e1b77 100644 --- a/src/org/torproject/ernie/db/GetTorDownloader.java +++ b/src/org/torproject/ernie/db/GetTorDownloader.java @@ -33,6 +33,9 @@ public class GetTorDownloader { getTorFile)); String line = null; while ((line = br.readLine()) != null) { + if (line.startsWith("@type gettor 1.")) { + continue; + } String date = line.split(" ")[0]; getTorStats.put(date, line); } @@ -92,6 +95,7 @@ public class GetTorDownloader { getTorDirectory.mkdirs(); } BufferedWriter bw = new BufferedWriter(new FileWriter(getTorFile)); + bw.write("@type gettor 1.0\n"); for (String line : getTorStats.values()) { bw.write(line + "\n"); }