medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0d0282cc8d4f3d676d0c4eded4beb0664a05e9e6
parent c2d99ad9090a3d6d81af42f7a482f180e560a7df
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jan 23 23:18:30 +0000

Nevermind

Diffstat:
stats.cc | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/stats.cc b/stats.cc @@ -49,11 +49,8 @@ void stats_record( Stats * stats, double x ) { } void stats_print( Stats * stats, const char * name ) { - // make a copy of the samples so other threads can't ruin our sort - double local_samples[ STATS_NUM_QUART_SAMPLES ]; u32 num_samples = min( stats->num_records, ( u64 ) STATS_NUM_QUART_SAMPLES ); - memcpy( local_samples, stats->samples, num_samples * sizeof( double ) ); - std::sort( local_samples, local_samples + num_samples ); + std::sort( stats->samples, stats->samples + num_samples ); printf( "[%s]\n\tn: %llu\n\tmean: %f\n\tstddev: %f\n\trange: %f to %f\n\t25%%: %f 75%%: %f", name, stats->num_records,