Compare commits

..

No commits in common. "c2516a2b54657eb2fadc543ad39a0a57f7fed71e" and "14c505c15bd3691bf6eab01c82dc2b9d4beda7a2" have entirely different histories.

3 changed files with 4 additions and 4 deletions

View File

@ -128,10 +128,10 @@ class Receive extends Base
// If packet is greater than a size, lets queue it
if ($this->queue || ($this->receiving->size > config('fido.queue_size',0))) {
Log::info(sprintf('%s:- Packet [%s] will be sent to the queue for processing because its [%d] size, or queue forced',self::LOGKEY,$this->receiving->full_name,$this->receiving->size));
PacketProcess::dispatch($this->receiving,$this->ao->withoutRelations(),$rcvd_time);
PacketProcess::dispatch($this->receiving,$this->ao,$rcvd_time);
} else
PacketProcess::dispatchSync($this->receiving,$this->ao->withoutRelations(),$rcvd_time);
PacketProcess::dispatchSync($this->receiving,$this->ao,$rcvd_time);
} catch (\Exception $e) {
Log::error(sprintf('%s:! Got error dispatching packet [%s] (%d:%s-%s).',self::LOGKEY,$this->receiving->full_name,$e->getLine(),$e->getFile(),$e->getMessage()));

View File

@ -92,7 +92,7 @@ class Node
// Return how long our session has been connected
case 'session_time':
return sprintf("%d",$this->start_time->diffInSeconds(Carbon::now()));
return sprintf("%d",Carbon::now()->diffInSeconds($this->start_time));
case 'system':
case 'sysop':

View File

@ -132,7 +132,7 @@ class PacketProcess implements ShouldQueue
} else {
// If we want to keep the packet, we could do that logic here
if (config('fido.packet_keep')) {
$dir = sprintf('%s/%d/%d/%d',config('fido.dir'),($x=Carbon::now())->format('Y'),$x->format('m'),$x->format('d'));
$dir = sprintf('%s/%s',config('fido.dir'),Carbon::now()->format('Ymd'));
Log::debug(sprintf('%s:- Moving processed packet [%s] to [%s]',self::LOGKEY,$this->file->rel_name,$dir));
try {