소스 검색

AMBARI-12951. Prompt user to save checkpoint before shutdown if last checkpoint is too old. (xiwang via yusaku)

Yusaku Sako 10 년 전
부모
커밋
a8301564a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-web/app/controllers/main/service/item.js

+ 1 - 1
ambari-web/app/controllers/main/service/item.js

@@ -260,7 +260,7 @@ App.MainServiceItemController = Em.Controller.extend(App.SupportClientConfigsDow
     if (!lastCheckpointTime) {
       this.set("isNNCheckpointTooOld", null);
     } else {
-      var time_criteria = 12; // time in hours to define how many hours ago is too old
+      var time_criteria = App.nnCheckpointAgeAlertThreshold; // time in hours to define how many hours ago is too old
       var time_ago = (Math.round(App.dateTime() / 1000) - (time_criteria * 3600)) *1000;
       if (lastCheckpointTime <= time_ago) {
         // too old, set the effected hostName