Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(api): adjust the wrong check in Resource model
Browse files Browse the repository at this point in the history
  • Loading branch information
vhr committed Mar 16, 2020
1 parent 6f0a2d1 commit 8a03f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Centreon/Domain/Monitoring/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function getDuration(): ?string
{
$result = null;

if ($this->getLastCheck()) {
if ($this->getLastStatusChange()) {
$result = CentreonDuration::toString(time() - $this->getLastStatusChange()->getTimestamp());
}

Expand Down

0 comments on commit 8a03f9c

Please sign in to comment.