]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virresctrl: Sort resctrl array correctly in virResctrlMonitorGetStats()
authorHuaqiang <huaqiang.wang@intel.com>
Fri, 10 May 2019 15:21:47 +0000 (23:21 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 May 2019 12:38:58 +0000 (14:38 +0200)
commite34c028af1080720f2c5cca7ea1c88af5cc5c49f
tree5c203993408666a92a9506f5cbdfee8f77f62886
parentd55be92286f3b0143e263d42ce421d5c441f2cab
virresctrl: Sort resctrl array correctly in virResctrlMonitorGetStats()

The qsort element is a pointer of virResctrlMonitorStats, and
the comparing function's arguments have a type of pointer of
virResctrlMonitorStatsPtr.

Signed-off-by: Huaqiang <huaqiang.wang@intel.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virresctrl.c