/* ** NAME ** ProcessBaseStats ** ** DESCRIPTION ** Main function to process Base Stats. ** ** FORMAL INPUTS ** SFBASE * - ptr to update. ** ** FORMAL OUTPUTS ** int - 0 is successful */ int ProcessBaseStats(SFBASE *sfBase, int console, int file, FILE * fh) { SFBASE_STATS sfBaseStats; if( console || file ) CalculateBasePerfStats(sfBase, &sfBaseStats); if( console ) DisplayBasePerfStatsConsole(&sfBaseStats, sfBase->iFlags); if( file ) LogBasePerfStats(&sfBaseStats, fh ); return 0; }
/* ** NAME ** ProcessBaseStats ** ** DESCRIPTION ** Main function to process Base Stats. ** ** FORMAL INPUTS ** SFBASE * - ptr to update. ** ** FORMAL OUTPUTS ** int - 0 is successful */ int ProcessBaseStats(SFBASE *sfBase, int console, int file, FILE * fh) { SFBASE_STATS sfBaseStats; if( console || file ) { if(CalculateBasePerfStats(sfBase, &sfBaseStats)) return -1; } if( console ) DisplayBasePerfStatsConsole(&sfBaseStats, perfmon_config->base_flags); if( file ) LogBasePerfStats(&sfBaseStats, fh ); return 0; }