From 8a8484db68a74d9aab96af37277b80131ceab4bd Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Wed, 9 May 2018 12:54:43 -0400 Subject: [PATCH] Add option to display one day of data --- .../autopsy/healthmonitor/HealthMonitorDashboard.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/healthmonitor/HealthMonitorDashboard.java b/Core/src/org/sleuthkit/autopsy/healthmonitor/HealthMonitorDashboard.java index 706680b591..daa6caa588 100644 --- a/Core/src/org/sleuthkit/autopsy/healthmonitor/HealthMonitorDashboard.java +++ b/Core/src/org/sleuthkit/autopsy/healthmonitor/HealthMonitorDashboard.java @@ -212,7 +212,7 @@ public class HealthMonitorDashboard { // Create the combo box for selecting how much data to display String[] dateOptionStrings = Arrays.stream(DateRange.values()).map(e -> e.getLabel()).toArray(String[]::new); dateComboBox = new JComboBox<>(dateOptionStrings); - dateComboBox.setSelectedItem(DateRange.TWO_WEEKS.getLabel()); + dateComboBox.setSelectedItem(DateRange.ONE_DAY.getLabel()); // Set up the listener on the date combo box dateComboBox.addActionListener(new ActionListener() { @@ -401,11 +401,13 @@ public class HealthMonitorDashboard { */ @NbBundle.Messages({"HealthMonitorDashboard.DateRange.all=All", "HealthMonitorDashboard.DateRange.twoWeeks=Two weeks", - "HealthMonitorDashboard.DateRange.oneWeek=One week"}) + "HealthMonitorDashboard.DateRange.oneWeek=One week", + "HealthMonitorDashboard.DateRange.oneDay=One day"}) private enum DateRange { ALL(Bundle.HealthMonitorDashboard_DateRange_all(), 0), TWO_WEEKS(Bundle.HealthMonitorDashboard_DateRange_twoWeeks(), 14), - ONE_WEEK(Bundle.HealthMonitorDashboard_DateRange_oneWeek(), 7); + ONE_WEEK(Bundle.HealthMonitorDashboard_DateRange_oneWeek(), 7), + ONE_DAY(Bundle.HealthMonitorDashboard_DateRange_oneDay(), 1); private final String label; private final long numberOfDays;