sflow: Avoid division by zero if sampling rate is 0.
authorBen Pfaff <blp@nicira.com>
Mon, 11 Jan 2010 19:09:14 +0000 (11:09 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Jan 2010 19:09:14 +0000 (11:09 -0800)
commita68813c3dce6597c302c1d112f88b8020c4d2eba
tree9a1bea9844cda02df3b85daeeb52c54afc1573c1
parentb6dab095874bef8c59e9c1304cfc49f55a8259fb
sflow: Avoid division by zero if sampling rate is 0.

Reported by Justin Pettit.
ofproto/ofproto-sflow.c