@@ -34,13 +34,13 @@ public class JobsActionBean extends BaseActionBean {
3434 private static final long MILLIS_IN_HOUR = 3600000L ;
3535 private static final long MILLIS_IN_15MINS = 15 * 60 * 1000 ;
3636 private static final int INTERVALS = 24 * 4 ;
37- int [] runningJobsCountersMins = new int [ INTERVALS ] ;
38- int [] queuedJobsCountersMins = new int [ INTERVALS ] ;
39- int [] runningCPUsCountersMins = new int [ INTERVALS ] ;
40- int [] queuedCPUsCountersMins = new int [ INTERVALS ] ;
41- int [] completedCountersMins = new int [ INTERVALS ] ;
42- int [] startedCountersMins = new int [ INTERVALS ] ;
43- int [] createdCountersMins = new int [ INTERVALS ] ;
37+ int [] runningJobsCountersMins ;
38+ int [] queuedJobsCountersMins ;
39+ int [] runningCPUsCountersMins ;
40+ int [] queuedCPUsCountersMins ;
41+ int [] completedCountersMins ;
42+ int [] startedCountersMins ;
43+ int [] createdCountersMins ;
4444 Map <Integer , Integer > jobsCPU = new TreeMap <Integer , Integer >();
4545 Map <Integer , Integer > waitingHoursJobs = new HashMap <Integer , Integer >();
4646 LinkedHashMap <String , String > warnings ;
@@ -77,6 +77,14 @@ public Resolution detail() {
7777 int holdCPUs = 0 ;
7878 warnings = new LinkedHashMap <>(40 );
7979 suspiciousJobs = new HashMap <>(40 );
80+ // zero
81+ runningJobsCountersMins = new int [INTERVALS ];
82+ queuedJobsCountersMins = new int [INTERVALS ];
83+ runningCPUsCountersMins = new int [INTERVALS ];
84+ queuedCPUsCountersMins = new int [INTERVALS ];
85+ completedCountersMins = new int [INTERVALS ];
86+ startedCountersMins = new int [INTERVALS ];
87+ createdCountersMins = new int [INTERVALS ];
8088 //ziskame ulohy
8189 for (PBS pbs : pbsky .getListOfPBS ()) {
8290 for (Job job : pbs .getJobsById ()) {
0 commit comments