Use timeSince() for displaying status changes of hosts instead of prefixedTimeSince()

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-10 14:22:06 +02:00
parent 5a46821d91
commit d5427f03ab

View File

@ -82,7 +82,7 @@ if ($hosts->count() === 0) {
<td class="state"> <td class="state">
<strong><?= Host::getStateText($host->host_state, true); ?></strong><br /> <strong><?= Host::getStateText($host->host_state, true); ?></strong><br />
<?php if ((int) $host->host_state !== 99): ?> <?php if ((int) $host->host_state !== 99): ?>
<?= $this->prefixedTimeSince($host->host_last_state_change, true) ?> <?= $this->timeSince($host->host_last_state_change) ?>
<?php if ($host->host_state > 0 && (int) $host->host_state_type === 0): ?> <?php if ($host->host_state > 0 && (int) $host->host_state_type === 0): ?>
<br /> <br />
<strong>Soft <?= $host->host_attempt ?></strong> <strong>Soft <?= $host->host_attempt ?></strong>