[tor-commits] [metrics-lib/master] Set file name of parsed descriptor files.

karsten at torproject.org karsten at torproject.org
Wed Apr 25 10:09:46 UTC 2012


commit 4eadb9b5dc48f10417fc70f1be4539da57b7b0af
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Apr 24 15:31:43 2012 +0200

    Set file name of parsed descriptor files.
---
 .../descriptor/impl/DescriptorReaderImpl.java      |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/org/torproject/descriptor/impl/DescriptorReaderImpl.java b/src/org/torproject/descriptor/impl/DescriptorReaderImpl.java
index d5f779d..e82d039 100644
--- a/src/org/torproject/descriptor/impl/DescriptorReaderImpl.java
+++ b/src/org/torproject/descriptor/impl/DescriptorReaderImpl.java
@@ -179,6 +179,7 @@ public class DescriptorReaderImpl implements DescriptorReader {
             try {
               descriptorFile.setDirectory(directory);
               descriptorFile.setFile(file);
+              descriptorFile.setFileName(file.getAbsolutePath());
               descriptorFile.setLastModified(lastModifiedMillis);
               descriptorFile.setDescriptors(this.readFile(file));
             } catch (DescriptorParseException e) {





More information about the tor-commits mailing list