Author: cutting
Date: Tue Sep 20 19:38:56 2005
New Revision: 290602

URL: http://svn.apache.org/viewcvs?rev=290602&view=rev
Log:
Fix NUTCH-93: long filesystem names can wrap to a new line and were
not parsed correctly.

Modified:
    lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/DF.java

Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/DF.java
URL: 
http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/DF.java?rev=290602&r1=290601&r2=290602&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/DF.java 
(original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/ndfs/DF.java Tue Sep 
20 19:38:56 2005
@@ -48,6 +48,9 @@
           new StringTokenizer(lines.readLine(), " \t\n\r\f%");
         
         this.filesystem = tokens.nextToken();
+        if (!tokens.hasMoreTokens()) {            // for long filesystem name
+          tokens = new StringTokenizer(lines.readLine(), " \t\n\r\f%");
+        }
         this.capacity = Long.parseLong(tokens.nextToken()) * 1024;
         this.used = Long.parseLong(tokens.nextToken()) * 1024;
         this.available = Long.parseLong(tokens.nextToken()) * 1024;


Reply via email to