zabbix-agent2/src/libs/zbxdiag/diag_server.c
/******************************************************************************
 *                                                                            *
 * Function: diag_historycache_item_compare_values                            *
 *                                                                            *
 * Purpose: sort itemid,values_num pair by values_num in descending order     *
 *                                                                            *
 ******************************************************************************/
diag_historycache_item_compare_values

Purpose: sort itemid,values_num pair by values_num in descending order
diag_historycache_item_compare_values Purpose : sort itemid values_num pair by values_num in descending order
static int	diag_valuecache_item_compare_values(const void *d1, const void *d2)
{
	zbx_vc_item_stats_t	*i1 = *(zbx_vc_item_stats_t **)d1;
	zbx_vc_item_stats_t	*i2 = *(zbx_vc_item_stats_t **)d2;
	return i2->values_num - i1->values_num;
}
static int diag_valuecache_item_compare_values ( const void * d1 , const void * d2 ) { zbx_vc_item_stats_t * i1 = * ( zbx_vc_item_stats_t * * ) d1 ; zbx_vc_item_stats_t * i2 = * ( zbx_vc_item_stats_t * * ) d2 ; return i2 -> values_num - i1 -> values_num ; }
Function: diag_historycache_item_compare_values                            
                                                                            
 Purpose: sort itemid,values_num pair by values_num in descending order
Function : diag_historycache_item_compare_values Purpose : sort itemid values_num pair by values_num in descending order