commit a77d67de24ab52655479c94a243633f4d4245cdb Author: Karsten Loesing karsten.loesing@gmx.net Date: Tue May 29 20:14:51 2012 +0200
Print out a warning if we're missing Torperf data lines. --- src/org/torproject/ernie/db/TorperfDownloader.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/org/torproject/ernie/db/TorperfDownloader.java b/src/org/torproject/ernie/db/TorperfDownloader.java index e7c55a1..ddd202a 100644 --- a/src/org/torproject/ernie/db/TorperfDownloader.java +++ b/src/org/torproject/ernie/db/TorperfDownloader.java @@ -226,6 +226,13 @@ public class TorperfDownloader { } bw.close(); br.close(); + if (!copyLines) { + this.logger.warning("The last timestamp line in '" + + outputFile.getAbsolutePath() + "' is not contained in the " + + "new file downloaded from '" + url + "'. Cannot append " + + "new lines without possibly leaving a gap. Skipping."); + return false; + } } catch (IOException e) { this.logger.log(Level.WARNING, "Failed downloading and/or merging '" + url + "'.", e);
tor-commits@lists.torproject.org