zabbix-agent2/src/libs/zbxtrends/cache.c
/******************************************************************************
 *                                                                            *
 * Function: tfc_function_str                                                 *
 *                                                                            *
 * Purpose: return trend function name in readable format                     *
 *                                                                            *
 ******************************************************************************/
tfc_function_str

Purpose: return trend function name in readable format
tfc_function_str Purpose : return trend function name in readable format
static const char	*tfc_function_str(zbx_trend_function_t function)
{
	switch (function)
	{
		case ZBX_TREND_FUNCTION_AVG:
			return "avg";
		case ZBX_TREND_FUNCTION_COUNT:
			return "count";
		case ZBX_TREND_FUNCTION_DELTA:
			return "delta";
		case ZBX_TREND_FUNCTION_MAX:
			return "max";
		case ZBX_TREND_FUNCTION_MIN:
			return "min";
		case ZBX_TREND_FUNCTION_SUM:
			return "sum";
		default:
			return "unknown";
	}
}
static const char * tfc_function_str ( zbx_trend_function_t function ) { switch ( function ) { case ZBX_TREND_FUNCTION_AVG : return " " ; case ZBX_TREND_FUNCTION_COUNT : return " " ; case ZBX_TREND_FUNCTION_DELTA : return " " ; case ZBX_TREND_FUNCTION_MAX : return " " ; case ZBX_TREND_FUNCTION_MIN : return " " ; case ZBX_TREND_FUNCTION_SUM : return " " ; default : return " " ; } }
Function: tfc_function_str                                                 
                                                                            
 Purpose: return trend function name in readable format
Function : tfc_function_str Purpose : return trend function name in readable format