mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added -force- option to Agent::lastStatus
This commit is contained in:
parent
633116a793
commit
1c14fa4bcb
@ -104,11 +104,11 @@ class Agent extends Entity
|
||||
/**
|
||||
* Return last value (status) of the agent.
|
||||
*
|
||||
* @param boolean $recalc Forcre recalculation.
|
||||
* @param boolean $force Force recalculation.
|
||||
*
|
||||
* @return integer Status of the agent.
|
||||
*/
|
||||
public function lastStatus($force=false)
|
||||
public function lastStatus(bool $force=false)
|
||||
{
|
||||
if ($force === true) {
|
||||
return \agents_get_status(
|
||||
|
Loading…
x
Reference in New Issue
Block a user