use correct PRNG initializer
[oweals/gnunet.git] / src / util / test_os_load.c
index b46a3eb595e78f51a86a2c1b4772cc1fe8271dc0..7cc35e56d6adba01d5411609f78f07eefea22b5f 100644 (file)
@@ -77,7 +77,6 @@ testcpu ()
       fprintf (stderr,
                "\nbusy loop failed to increase CPU load: %d >= %d.",
                ret, GNUNET_OS_load_cpu_get (cfg));
-      ret = 1;
     }
   else
     {
@@ -86,13 +85,12 @@ testcpu ()
                "\nbusy loop increased CPU load: %d < %d.",
                ret, GNUNET_OS_load_cpu_get (cfg));
 #endif
-      ret = 0;
     }
   fprintf (stderr, "\n");
 
 
   GNUNET_CONFIGURATION_destroy (cfg);
-  return ret;
+  return 0;
 }
 
 static int
@@ -152,7 +150,7 @@ testdisk ()
       fprintf (stderr,
                "\nbusy loop failed to increase IO load: %d >= %d.",
                ret, GNUNET_OS_load_disk_get (cfg));
-      ret = 1;
+      ret = 0;
     }
   else
     {
@@ -165,7 +163,7 @@ testdisk ()
     }
   fprintf (stderr, "\n");
   GNUNET_CONFIGURATION_destroy (cfg);
-  return 0;
+  return ret;
 }
 
 int