changeset 1329:2d0b2fd926fb

7901736: JMH update interval should be greater
author shade
date Tue, 19 Jul 2016 21:58:54 +0300
parents 1345ad5a0155
children e96cad1fc480
files jmh-core/src/main/java/org/openjdk/jmh/util/Version.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/util/Version.java	Tue Jul 19 21:57:50 2016 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/util/Version.java	Tue Jul 19 21:58:54 2016 +0300
@@ -37,6 +37,8 @@
 
 public class Version {
 
+    private static final int UPDATE_INTERVAL = 180;
+
     public static String getVersion() {
         StringWriter sw = new StringWriter();
         PrintWriter pw = new PrintWriter(sw);
@@ -84,7 +86,7 @@
             long diff = (System.currentTimeMillis() - parse.getTime()) / TimeUnit.DAYS.toMillis(1);
             if (diff > 0) {
                 pw.print(String.format("%d days ago", diff));
-                if (diff > 90) {
+                if (diff > UPDATE_INTERVAL) {
                     pw.print(", please consider updating!");
                 }
             } else {