ZeroDivisionError

26 views
Skip to first unread message

Nadine

unread,
Feb 15, 2021, 1:14:54 AM2/15/21
to ns-3-users
Hello  all
Please I need help
I'm executing flow.py code for plotting parameters from manet-routing-compare.flowmon  . I'm  getting this message when run $ python3 flow.py  manet-routing-compare2.flowmon
Traceback (most recent call last):
  File "flow.py", line 25, in <module>
    bitrates.append(8*float(flow.get("rxBytes"))/duration*1e-3)
ZeroDivisionError: float division by zero
  the duration is (the time first received packet - the time last received packet).  the attachment files are provided . Could you please suggest me what to do or modify.
flow.py
manet-routing-compare2.flowmon

Nadine Hasan

unread,
Feb 15, 2021, 1:17:33 AM2/15/21
to ns-3-...@googlegroups.com
 correction: 
Duration = time last received packet _ time first received packet 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/1e9a04d4-5ef3-4d2b-bf08-e993e05913b6n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages