mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix rounding null in mempools module (#14290)
This commit is contained in:
@ -139,7 +139,7 @@ class Mempool extends DeviceRelatedModel implements Keyable
|
||||
|
||||
public function setMempoolPercAttribute($percent)
|
||||
{
|
||||
$this->attributes['mempool_perc'] = round($percent);
|
||||
$this->attributes['mempool_perc'] = is_numeric($percent) ? round($percent) : null;
|
||||
}
|
||||
|
||||
public function getCompositeKey()
|
||||
|
Reference in New Issue
Block a user