hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1615467 - /hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java
Date Mon, 04 Aug 2014 00:02:37 GMT
Author: edwardyoon
Date: Mon Aug  4 00:02:36 2014
New Revision: 1615467

URL: http://svn.apache.org/r1615467
Log:
Fix compilation with jdk 6

Modified:
    hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java

Modified: hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java
URL: http://svn.apache.org/viewvc/hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java?rev=1615467&r1=1615466&r2=1615467&view=diff
==============================================================================
--- hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java (original)
+++ hama/trunk/core/src/main/java/org/apache/hama/manager/LogView.java Mon Aug  4 00:02:36
2014
@@ -66,7 +66,7 @@ public class LogView {
       Arrays.sort(files, new Comparator<File>() {
         @Override
         public int compare(File file1, File file2) {
-          return Long.compare(file2.lastModified(), file1.lastModified());
+          return (int)(file2.lastModified() - file1.lastModified());
         }
       });
 



Mime
View raw message