]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: compare floor attribute in virNetDevBandwidthEqual
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Aug 2014 10:02:12 +0000 (12:02 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Aug 2014 10:35:39 +0000 (12:35 +0200)
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1064770

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virnetdevbandwidth.c

index 1e00116c7c7376eaf94c1e9f9e4dd5c848db3abc..5fa231a1ff5bdfe190deb834a1766d949936599a 100644 (file)
@@ -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) {