[tor-commits] [metrics-db/master] Create stats/ directory before writing torperf temp file.
karsten at torproject.org
karsten at torproject.org
Sat Oct 27 22:27:30 UTC 2012
commit 9fac7fdda39996aa7baa70f9d4c8a7abfe7fd369
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sat Oct 27 18:26:24 2012 -0400
Create stats/ directory before writing torperf temp file.
---
.../ernie/db/torperf/TorperfDownloader.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
index 19b4a54..4201858 100644
--- a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
+++ b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
@@ -117,6 +117,7 @@ public class TorperfDownloader extends Thread {
private void writeLastMergedTimestamps() {
try {
+ this.torperfLastMergedFile.getParentFile().mkdirs();
BufferedWriter bw = new BufferedWriter(new FileWriter(
this.torperfLastMergedFile));
for (Map.Entry<String, String> e :
More information about the tor-commits
mailing list