This change is against trunk, svn diff from the trunk root directory:
Index: monitor-core/libmetrics/linux/metrics.c
===================================================================
--- monitor-core/libmetrics/linux/metrics.c (revision 2295)
+++ monitor-core/libmetrics/linux/metrics.c (working copy)
@@ -385,11 +385,8 @@
static int cpu_num = 0;
g_val_t val;
- /* Only need to do this once */
- if (! cpu_num) {
- /* We'll use _SC_NPROCESSORS_ONLN to get operating cpus */
- cpu_num = get_nprocs();
- }
+ /* We'll use _SC_NPROCESSORS_ONLN to get operating cpus */
+ cpu_num = get_nprocs();
val.uint16 = cpu_num;
return val;
Thank you,
--
Chandler
On May 10, 2010, at 8:32 AM, Jesse Becker wrote:
>
> Is your change against trunk or 3.1.x, and can you please post it to
> the list?
>
> --
> Jesse Becker
> Every cloud has a silver lining, except for the mushroom-shaped ones,
> which come lined with strontium-90.
>
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general