You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/10/10 20:20:42 UTC

[3/6] git commit: ACCUMULO-3221 Ensure arithmetic happens as longs and not integers.

ACCUMULO-3221 Ensure arithmetic happens as longs and not integers.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/e18aacda
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/e18aacda
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/e18aacda

Branch: refs/heads/master
Commit: e18aacda38d36871aa9d8c39594174af3006f216
Parents: 854dce9
Author: Josh Elser <el...@apache.org>
Authored: Fri Oct 10 14:10:41 2014 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Fri Oct 10 14:10:41 2014 -0400

----------------------------------------------------------------------
 core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/e18aacda/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java b/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
index 6943b37..a2834ff 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/shell/Shell.java
@@ -229,7 +229,7 @@ public class Shell extends ShellOptions {
       }
       
       setDebugging(cl.hasOption(debugOption.getLongOpt()));
-      authTimeout = Integer.parseInt(cl.getOptionValue(authTimeoutOpt.getLongOpt(), DEFAULT_AUTH_TIMEOUT)) * 60 * 1000;
+      authTimeout = Integer.parseInt(cl.getOptionValue(authTimeoutOpt.getLongOpt(), DEFAULT_AUTH_TIMEOUT)) * 60 * 1000l;
       disableAuthTimeout = cl.hasOption(disableAuthTimeoutOpt.getLongOpt());
       
       if (cl.hasOption(zooKeeperInstance.getOpt()) && cl.getOptionValues(zooKeeperInstance.getOpt()).length != 2)