s4-selftest: fix output of opened connections in torture_holdcon
authorBjörn Baumbach <bb@sernet.de>
Tue, 10 Jan 2012 15:43:27 +0000 (16:43 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 16 Feb 2012 11:07:32 +0000 (12:07 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
source4/torture/basic/misc.c

index 0515988c14781e91285dd299f1af0650096e3fbb..213d9239509fca9249083e1615870c3fea8aa401 100644 (file)
@@ -198,7 +198,7 @@ bool torture_holdcon(struct torture_context *tctx)
                        return false;
                }
                if (torture_setting_bool(tctx, "progress", true)) {
-                       torture_comment(tctx, "opened %d connections\r", i);
+                       torture_comment(tctx, "opened %d connections\r", i+1);
                        fflush(stdout);
                }
        }