Fix compilation error on floating point constants

This commit is contained in:
Edwin Brady 2013-03-18 23:43:44 +01:00
parent 17fb34a6f8
commit f8db87355b

View File

@ -20,8 +20,8 @@ void print_stats(const Stats * stats) {
alloc_rate = (int)((double)(stats->allocations) / mut_sec);
}
double gc_percent = 0.0d;
double productivity = 0.0d;
double gc_percent = 0.0;
double productivity = 0.0;
if (total > 0) {
gc_percent = 100 * (double)stats->gc_time / (double)total;
productivity = 100 * ((double)mut / (double)total);