smitajoshi12 commented on PR #5801:
URL: https://github.com/apache/ozone/pull/5801#issuecomment-1863213018

   > > If We get 0 value LastHeartbeat or if there is no data then check UI is 
failing or not.
   > 
   > @smitajoshi12 If `heartbeat` is anything other than a positive number, we 
get `NA`.
   > 
   > ```
   > return heartbeat > 0 ? getTimeDiffFromTimestamp(heartbeat) : 'NA';
   > ```
   > 
   > The values I provided in `db.json` were
   > 
   > * `asd` for `localhost2`
   > * `-1` for `localhost3`
   > * `0` for `localhost4`
   > 
   > Check screenshot. We get `NA` in all cases.
   > 
   > 
![image](https://private-user-images.githubusercontent.com/74301312/291667644-69216ca1-c93c-4e4e-9890-53d8f6910944.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDMwMDc2OTcsIm5iZiI6MTcwMzAwNzM5NywicGF0aCI6Ii83NDMwMTMxMi8yOTE2Njc2NDQtNjkyMTZjYTEtYzkzYy00ZTRlLTk4OTAtNTNkOGY2OTEwOTQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFJV05KWUFYNENTVkVINTNBJTJGMjAyMzEyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjMxMjE5VDE3MzYzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkNDQ3OGY4MDEyYTUwODE1NjIxYTcyODk0ZjVlNTZmOTJlZjJhNTM5ZmFlNTk2ZGY0MjUxNWM4NjA2YTExMjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OowOwH3ldwTHyv5C6VcSN1ax0-3UTxmIYxsrNmMHwHw)
   
   @xBis7 
   Thanks It looks good to me


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to