Revision: 57160
http://sourceforge.net/p/brlcad/code/57160
Author: brlcad
Date: 2013-08-27 02:36:15 +0000 (Tue, 27 Aug 2013)
Log Message:
-----------
move variable declaration into the ifdef with the use.
Modified Paths:
--------------
brlcad/trunk/src/adrt/slave/slave.c
Modified: brlcad/trunk/src/adrt/slave/slave.c
===================================================================
--- brlcad/trunk/src/adrt/slave/slave.c 2013-08-27 01:28:37 UTC (rev 57159)
+++ brlcad/trunk/src/adrt/slave/slave.c 2013-08-27 02:36:15 UTC (rev 57160)
@@ -114,9 +114,8 @@
case ADRT_WORK_STATUS:
{
+#ifdef HAVE_GETLOADAVG
double loadavg = -1.0;
-
-#ifdef HAVE_GETLOADAVG
getloadavg (&loadavg, 1);
printf ("load average: %f\n", loadavg);
#endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits