Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This might solve issue #18
Background:
The flow length can be in the range of nano/micro-seconds, if it is converted to milliseconds then the uint operation floors it into a 0 which means computing a rate (pkts/time) yields an error. To solve this, the minimum allowed duration for a flow is 1 (unit).
The typical behavior is to return a +inf but since this doesn't make sense in networking I believe that dividing by 1 is better.