freetdm: ftmod_r2 - cast added

This commit is contained in:
Arnaldo Pereira 2010-11-26 15:03:31 -02:00
parent 80031c3e17
commit 2b126a1510
1 changed files with 1 additions and 1 deletions

View File

@ -1656,7 +1656,7 @@ static FIO_API_FUNCTION(ftdm_r2_api)
}
range = 0;
for (i = 0; i < ftdm_array_len(r2data->loops); i++) {
pct = 100*r2data->loops[i]/r2data->total_loops;
pct = 100*(float)r2data->loops[i]/r2data->total_loops;
if ((i + 1) == ftdm_array_len(r2data->loops)) {
stream->write_function(stream, ">= %dms: %llu - %.03lf%%\n", range, r2data->loops[i], pct);
} else {