mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
util: compare floor attribute in virNetDevBandwidthEqual
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1064770 Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
bf90846909
commit
1b5cff867d
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2009-2013 Red Hat, Inc.
|
||||
* Copyright (C) 2009-2014 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
@ -342,6 +342,7 @@ virNetDevBandwidthEqual(virNetDevBandwidthPtr a,
|
||||
|
||||
if (a->in->average != b->in->average ||
|
||||
a->in->peak != b->in->peak ||
|
||||
a->in->floor != b->in->floor ||
|
||||
a->in->burst != b->in->burst)
|
||||
return false;
|
||||
} else if (b->in) {
|
||||
@ -355,6 +356,7 @@ virNetDevBandwidthEqual(virNetDevBandwidthPtr a,
|
||||
|
||||
if (a->out->average != b->out->average ||
|
||||
a->out->peak != b->out->peak ||
|
||||
a->out->floor != b->out->floor ||
|
||||
a->out->burst != b->out->burst)
|
||||
return false;
|
||||
} else if (b->out) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user