Skip to content
Snippets Groups Projects
Commit b8403a12 authored by ArktikHunter's avatar ArktikHunter
Browse files

typo

parent c5dfbc83
No related branches found
No related tags found
1 merge request!21pydtn agkmeans and version 1.0
Pipeline #10897 failed
......@@ -274,8 +274,8 @@ class Packet:
if target is self.destination:
if self.recieved is None:
self.recieved = 0
if self.received is None:
self.received = 0
self.total_hops = 0
self.hop = 0
self.total_delay = 0
......@@ -297,7 +297,7 @@ class Packet:
COPY_ARRAY.append(self._stats['copy'])
self._stats['total_hops'] = int(self.total_hops
/ self._stats['copy'])
self.recieved += 1
self.received += 1
def drop(self):
if self.dropped is None:
......@@ -308,8 +308,8 @@ class Packet:
"""Return statistcs for a packet."""
stats = {}
if self.recieved:
stats['recieved'] = self.recieved
if self.received:
stats['received'] = self.received
stats['total_hops'] = self.total_hops
stats['total_delay'] = self.total_delay
stats['energy'] = self.energy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment