Fixed missing item case in uptime feature.
This commit is contained in:
parent
85c311a260
commit
378bde2d73
1 changed files with 7 additions and 3 deletions
|
@ -325,10 +325,14 @@ public class UptimeJournal
|
|||
Service current = iterator.next();
|
||||
if (current.getWebsiteURL() != null)
|
||||
{
|
||||
if (getUptimes(current.getWebsiteURL()).last().getStatus() == UptimeStatus.ERROR)
|
||||
Uptimes currentUptimes = getUptimes(current.getWebsiteURL());
|
||||
if (!currentUptimes.isEmpty())
|
||||
{
|
||||
ended = true;
|
||||
result = true;
|
||||
if (currentUptimes.last().getStatus() == UptimeStatus.ERROR)
|
||||
{
|
||||
ended = true;
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue