gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26758 - gnunet/src/testbed


From: gnunet
Subject: [GNUnet-SVN] r26758 - gnunet/src/testbed
Date: Thu, 4 Apr 2013 15:37:43 +0200

Author: harsha
Date: 2013-04-04 15:37:43 +0200 (Thu, 04 Apr 2013)
New Revision: 26758

Modified:
   gnunet/src/testbed/gnunet-service-testbed_cpustatus.c
Log:
- disable load statistics on windows


Modified: gnunet/src/testbed/gnunet-service-testbed_cpustatus.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed_cpustatus.c       2013-04-04 
13:29:32 UTC (rev 26757)
+++ gnunet/src/testbed/gnunet-service-testbed_cpustatus.c       2013-04-04 
13:37:43 UTC (rev 26758)
@@ -643,6 +643,12 @@
   char *stats_dir;
   char *fn;
 
+#if MINGW
+  GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+              "Load statistics logging now available for windows\n");
+  return;                       /* No logging on windows for now :( */
+#endif
+
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_string (cfg, "testbed",
                                              "STATS_DIR", &stats_dir))
@@ -675,8 +681,6 @@
                               "fopen", "/proc/stat");
 #elif OSX
   initMachCpuStats ();
-#elif MINGW
-  InitWinEnv (NULL);
 #endif
   updateUsage ();               /* initialize */
   
@@ -689,6 +693,9 @@
 void
 GST_stats_destroy ()
 {
+#if MINGW
+  return;
+#endif
   if (NULL == bw)
     return;
 #ifdef LINUX
@@ -699,8 +706,6 @@
     }
 #elif OSX
   GNUNET_free_non_null (prev_cpu_load);
-#elif MINGW
-  ShutdownWinEnv ();
 #endif
   GNUNET_break (GNUNET_OK == GNUNET_BIO_write_close (bw));
   bw = NULL;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]