From: <ca...@us...> - 2008-08-30 00:31:02
|
Revision: 1737 http://ganglia.svn.sourceforge.net/ganglia/?rev=1737&view=rev Author: carenas Date: 2008-08-30 00:31:12 +0000 (Sat, 30 Aug 2008) Log Message: ----------- gmond: reformat memory metrics to match pre 3.1 style with the 3.1 release the memory metrics were moved to use a float instead of an unsigned but the format for the number used was inadvertly changed to include 3 decimal numbers which are never used practically. Modified Paths: -------------- trunk/monitor-core/gmond/modules/memory/mod_mem.c Modified: trunk/monitor-core/gmond/modules/memory/mod_mem.c =================================================================== --- trunk/monitor-core/gmond/modules/memory/mod_mem.c 2008-08-29 16:41:50 UTC (rev 1736) +++ trunk/monitor-core/gmond/modules/memory/mod_mem.c 2008-08-30 00:31:12 UTC (rev 1737) @@ -66,18 +66,18 @@ static Ganglia_25metric mem_metric_info[] = { - {0, "mem_total", 1200, GANGLIA_VALUE_FLOAT, "KB", "zero", "%.3f", UDP_HEADER_SIZE+8, "Total amount of memory displayed in KBs"}, - {0, "mem_free", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "Amount of available memory"}, - {0, "mem_shared", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "Amount of shared memory"}, - {0, "mem_buffers", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "Amount of buffered memory"}, - {0, "mem_cached", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "Amount of cached memory"}, - {0, "swap_free", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "Amount of available swap memory"}, - {0, "swap_total", 1200, GANGLIA_VALUE_FLOAT, "KB", "zero", "%.3f", UDP_HEADER_SIZE+8, "Total amount of swap space displayed in KBs"}, + {0, "mem_total", 1200, GANGLIA_VALUE_FLOAT, "KB", "zero", "%.0f", UDP_HEADER_SIZE+8, "Total amount of memory displayed in KBs"}, + {0, "mem_free", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "Amount of available memory"}, + {0, "mem_shared", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "Amount of shared memory"}, + {0, "mem_buffers", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "Amount of buffered memory"}, + {0, "mem_cached", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "Amount of cached memory"}, + {0, "swap_free", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "Amount of available swap memory"}, + {0, "swap_total", 1200, GANGLIA_VALUE_FLOAT, "KB", "zero", "%.0f", UDP_HEADER_SIZE+8, "Total amount of swap space displayed in KBs"}, #if HPUX - {0, "mem_arm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "mem_arm"}, - {0, "mem_rm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "mem_rm"}, - {0, "mem_avm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "mem_avm"}, - {0, "mem_vm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.3f", UDP_HEADER_SIZE+8, "mem_vm"}, + {0, "mem_arm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "mem_arm"}, + {0, "mem_rm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "mem_rm"}, + {0, "mem_avm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "mem_avm"}, + {0, "mem_vm", 180, GANGLIA_VALUE_FLOAT, "KB", "both", "%.0f", UDP_HEADER_SIZE+8, "mem_vm"}, #endif {0, NULL} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |