Signed-off-by: Wei Liu <wei.l...@citrix.com> --- tools/libxl/libxl_colo_save.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tools/libxl/libxl_colo_save.c b/tools/libxl/libxl_colo_save.c index e2fdc4b..26b3afd 100644 --- a/tools/libxl/libxl_colo_save.c +++ b/tools/libxl/libxl_colo_save.c @@ -533,11 +533,11 @@ static void colo_proxy_async_wait_for_checkpoint(libxl__colo_save_state *css) if (req < 0) { /* some error happens */ _exit(1); - } else if (!req) { - /* no checkpoint is needed, do a checkpoint every 5s */ - _exit(0); } else { - /* net packets is not consistent, we need to start a checkpoint */ + /* req == 0: no checkpoint is needed, do a checkpoint every 5s */ + /* req > 0: net packets is not consistent, we need to start a + * checkpoint + */ _exit(0); } } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel