Fix end session report, move address when system is a ZC, show #addresses on systems
This commit is contained in:
@@ -275,7 +275,7 @@ abstract class Protocol
|
||||
|
||||
Log::info(sprintf('%s: Total: %s - %d:%02d:%02d online, (%d) %lu%s sent, (%d) %lu%s received - %s',
|
||||
__METHOD__,
|
||||
$this->node->address,
|
||||
$this->node->address->ftn,
|
||||
$this->node->session_time/3600,
|
||||
$this->node->session_time%3600/60,
|
||||
$this->node->session_time%60,
|
||||
|
@@ -47,6 +47,14 @@ class System extends Model
|
||||
return $this->hasOne(Setup::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* This system is the ZC for the following zones
|
||||
*/
|
||||
public function zcs()
|
||||
{
|
||||
return $this->belongsToMany(Zone::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Zones a system has addresses for
|
||||
*
|
||||
|
Reference in New Issue
Block a user