Fix for received bytes, when packets have been processed

This commit is contained in:
Deon George 2023-07-19 10:49:57 +10:00
parent 3d4431da9a
commit 7584e3e44e

View File

@ -80,7 +80,7 @@ class Receive extends Base
return $this->completed->count(); return $this->completed->count();
case 'total_recv_bytes': case 'total_recv_bytes':
return $this->completed->sum(function($item) { return $item->size; }); return $this->completed->sum(function($item) { return $item->recvsize; });
default: default:
throw new \Exception('Unknown key: '.$key); throw new \Exception('Unknown key: '.$key);