Commit 7b4d489f authored by malenov's avatar malenov
Browse files

print 0 instead of 107374.182 in the WMOPS printout when update_cnt is 0

parent a72050aa
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@ void print_wmops( void )
    }

    fprintf( stdout, sfmts, "---------------", "------", "------", "------", "------" );
    fprintf( stdout, dfmts, "total", (float) update_cnt, FAC * min_cnt, FAC * max_cnt, update_cnt == 0 ? 0 : FAC * ops_cnt / update_cnt );
    fprintf( stdout, dfmts, "total", (float) update_cnt, update_cnt == 0 ? 0 : FAC * min_cnt, FAC * max_cnt, update_cnt == 0 ? 0 : FAC * ops_cnt / update_cnt );
    fprintf( stdout, "\n" );

#ifdef WMOPS_WC_FRAME_ANALYSIS