]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
[tests] don't spam for no logs
authorFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 22 Feb 2017 13:40:06 +0000 (14:40 +0100)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 22 Feb 2017 13:40:06 +0000 (14:40 +0100)
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
libknet/tests/test-common.c

index 3e51d8f30a48543687ff0ac02426bed5cbcc525c..7d9d6425aaec924c67af43a84a0236deb636e137 100644 (file)
@@ -260,7 +260,7 @@ static void *_logthread(void *args)
        struct timeval tv;
 
 select_loop:
-       tv.tv_sec = 5;
+       tv.tv_sec = 60;
        tv.tv_usec = 0;
 
        FD_ZERO(&rfds);
@@ -272,7 +272,7 @@ select_loop:
                return NULL;
        }
        if (!len) {
-               fprintf(data.std, "knet logs: No logs in the last 5 seconds\n");
+               fprintf(data.std, "knet logs: No logs in the last 60 seconds\n");
        }
        if (FD_ISSET(data.logfd, &rfds)) {
                flush_logs(data.logfd, data.std);