Skip to content

Commit

Permalink
Fixed dashboard failure (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
akumar074 authored Dec 20, 2022
1 parent 8acd9be commit 6246dd1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ public SharedResourceDashboard getData() {
AtomicInteger unavailable = new AtomicInteger();
List<SharedResource> sharedResource = SharedResource.listAll();
sharedResource.parallelStream().forEach(sr -> {
if (sr.getStatus().equals(ResourceAvailabilityStatus.AVAILABLE)) {
if (ResourceAvailabilityStatus.AVAILABLE.equals(sr.getStatus())) {
available.getAndIncrement();
}
if (sr.getStatus().equals(ResourceAvailabilityStatus.UNAVAILABLE)) {
if (ResourceAvailabilityStatus.UNAVAILABLE.equals(sr.getStatus())) {
unavailable.getAndIncrement();
}
});
Expand Down

0 comments on commit 6246dd1

Please sign in to comment.