fix incorrect hours check for 24h mempool fee rates toggle

This commit is contained in:
Craig Raw 2023-06-21 11:40:04 +02:00
parent 721c446fa8
commit ee20a6980b

View file

@ -93,7 +93,7 @@ public class MempoolSizeFeeRatesChart extends StackedAreaChart<String, Number> {
});
Optional<Date> optEarliest = AppServices.getMempoolHistogram().keySet().stream().findFirst();
period24.setDisable(optEarliest.isEmpty() || optEarliest.get().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime().isAfter(LocalDateTime.now().minusHours(24)));
period24.setDisable(optEarliest.isEmpty() || optEarliest.get().toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime().isAfter(LocalDateTime.now().minusHours(2)));
Region region = new Region();
HBox.setHgrow(region, Priority.SOMETIMES);