From 7584e3e44e61ae25431ee57031698cccaef67511 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 19 Jul 2023 10:49:57 +1000 Subject: [PATCH] Fix for received bytes, when packets have been processed --- app/Classes/File/Receive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/File/Receive.php b/app/Classes/File/Receive.php index 05a8139..3e8388d 100644 --- a/app/Classes/File/Receive.php +++ b/app/Classes/File/Receive.php @@ -80,7 +80,7 @@ class Receive extends Base return $this->completed->count(); case 'total_recv_bytes': - return $this->completed->sum(function($item) { return $item->size; }); + return $this->completed->sum(function($item) { return $item->recvsize; }); default: throw new \Exception('Unknown key: '.$key);