]> sourceware.org Git - lvm2.git/commit
libdm: test for zero interval_ns in _utilization() (Coverity)
authorBryn M. Reeves <bmr@redhat.com>
Wed, 6 Jul 2016 08:12:51 +0000 (09:12 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Wed, 6 Jul 2016 08:14:43 +0000 (09:14 +0100)
commit03e03e9c11f5731c225d6cb99a1f36d4d8b699f6
tree75c27570a139199798344578757b3464de24dcfd
parent5d3b136d38db40a6d26b8a09e7a4b504fa2f85d1
libdm: test for zero interval_ns in _utilization() (Coverity)

It's possible for interval_ns to be zero if the interval is not
set or the clock is misconfigured. Test for this before using the
value as the divisor in the utilisation calculation.
libdm/libdm-stats.c
This page took 0.036279 seconds and 5 git commands to generate.