]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Inline a sysconf call for linuxCPUStatsToBuf
authorJohn Ferlan <jferlan@redhat.com>
Thu, 27 Sep 2018 22:46:36 +0000 (18:46 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 1 Oct 2018 18:27:25 +0000 (14:27 -0400)
commitfddf92836a55679d9ac5ab09651167634434ef95
tree3b1621781dd1d4605191367a06a7a67b367fbed2
parent425b9f8aa6329365d2af753d97c8d834f1ee78fc
tests: Inline a sysconf call for linuxCPUStatsToBuf

While unlikely, sysconf(_SC_CLK_TCK) could fail leading to
indeterminate results for the subsequent division. So let's
just remove the # define and inline the same change.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virhostcputest.c