lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: Use DateTime.UtcNow.Ticks instead of Environment.TickCount
Date Fri, 19 Jun 2015 14:32:54 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master f47779a7e -> 26758e6ec


Use DateTime.UtcNow.Ticks instead of Environment.TickCount


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

Branch: refs/heads/master
Commit: cbdf72eeed366956a6806f48a69dbc77b67adaa6
Parents: f47779a
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Mon Jun 1 20:41:30 2015 -0400
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Mon Jun 1 20:41:30 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Tests/core/Search/TestDateFilter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cbdf72ee/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs b/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
index baaf0da..9b31c2a 100644
--- a/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
+++ b/src/Lucene.Net.Tests/core/Search/TestDateFilter.cs
@@ -47,7 +47,7 @@ namespace Lucene.Net.Search
             Directory indexStore = NewDirectory();
             RandomIndexWriter writer = new RandomIndexWriter(Random(), indexStore);
 
-            long now = Environment.TickCount / TimeSpan.TicksPerMillisecond;
+            long now = DateTime.UtcNow.Ticks / TimeSpan.TicksPerMillisecond;
 
             Document doc = new Document();
             // add time that is in the past


Mime
View raw message