commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1169528 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
Date Sun, 11 Sep 2011 20:43:42 GMT
Author: ggregory
Date: Sun Sep 11 20:43:42 2011
New Revision: 1169528

URL: http://svn.apache.org/viewvc?rev=1169528&view=rev
Log:
Use FileUtils.ONE_KB instead of 1024 magic number.

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java?rev=1169528&r1=1169527&r2=1169528&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileSystemUtils.java Sun Sep
11 20:43:42 2011
@@ -267,7 +267,7 @@ public class FileSystemUtils {
         }
         switch (os) {
             case WINDOWS:
-                return (kb ? freeSpaceWindows(path, timeout) / 1024 : freeSpaceWindows(path,
timeout));
+                return (kb ? freeSpaceWindows(path, timeout) / FileUtils.ONE_KB : freeSpaceWindows(path,
timeout));
             case UNIX:
                 return freeSpaceUnix(path, kb, false, timeout);
             case POSIX_UNIX:



Mime
View raw message