incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6695] Fixed LCD timeout being off by factor of 1000
Date Tue, 24 Sep 2013 20:11:11 GMT
Updated Branches:
  refs/heads/cj/6695 57786476e -> 2d5a6ab98 (forced update)


[#6695] Fixed LCD timeout being off by factor of 1000

time.time() is fractional seconds, not milliseconds

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2d5a6ab9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2d5a6ab9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2d5a6ab9

Branch: refs/heads/cj/6695
Commit: 2d5a6ab98bdc4f7cbad5275dfa648fde7f849fab
Parents: 4957e12
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Sep 24 19:37:14 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Tue Sep 24 20:11:00 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repository.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2d5a6ab9/Allura/allura/model/repository.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index f02f122..04c4063 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -146,7 +146,7 @@ class RepositoryImplementation(object):
         commit to touch each path, starting from the given commit.
         '''
         orig_commit = commit
-        timeout = asint(config.get('lcd_timeout', 60)) * 1000
+        timeout = float(config.get('lcd_timeout', 60))
         start_time = time()
         paths = set(paths)
         result = {}


Mime
View raw message