DomGarguilo commented on code in PR #3405:
URL: https://github.com/apache/accumulo/pull/3405#discussion_r1222097753
##########
server/monitor/src/main/java/org/apache/accumulo/monitor/rest/manager/ManagerResource.java:
##########
@@ -79,11 +79,12 @@ public static ManagerInformation getTables(Monitor monitor)
{
String label = "";
if (gcStatusObj != null) {
long start = 0;
- if (gcStatusObj.current.started != 0 || gcStatusObj.currentLog.started
!= 0) {
- start = Math.max(gcStatusObj.current.started,
gcStatusObj.currentLog.started);
+ if (gcStatusObj.getCurrent().isSetStarted() ||
gcStatusObj.getCurrentLog().isSetStarted()) {
Review Comment:
I think `isSet` would be equivalent to `!= 0` for these cases since the
variable is a `long` but usually `isSet` checks if it is `null` i think.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]