- Use modff() instead of modf() when using float parameters. C99 standard.

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1158 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-14 19:41:21 +00:00
parent 3e4ad93dc9
commit 93359507ea
1 changed files with 7 additions and 7 deletions

View File

@ -103,16 +103,16 @@ ConcreteSimulationStatistics::ConcreteSimulationStatistics(const std::vector<Con
//make the AVERAGE and ROUND the values //make the AVERAGE and ROUND the values
if (started_schedulables_count != 0) if (started_schedulables_count != 0)
{ {
modf(((_average_response_time / started_schedulables_count) * 100.0f) / 100.0f, &_average_response_time); modff(((_average_response_time / started_schedulables_count) * 100.0f) / 100.0f, &_average_response_time);
modf(((_average_efficiency / started_schedulables_count) * 100.0f) / 100.0f, &_average_efficiency); modff(((_average_efficiency / started_schedulables_count) * 100.0f) / 100.0f, &_average_efficiency);
modf(((_average_inactivity_time / started_schedulables_count) * 100.0f) / 100.0f, &_average_inactivity_time); modff(((_average_inactivity_time / started_schedulables_count) * 100.0f) / 100.0f, &_average_inactivity_time);
modf(((_average_turn_around / started_schedulables_count) * 100.0f) / 100.0f, &_average_turn_around); modff(((_average_turn_around / started_schedulables_count) * 100.0f) / 100.0f, &_average_turn_around);
modf(((_average_execution_progress / started_schedulables_count) * 100.0f) / 100.0f, &_average_execution_progress); modff(((_average_execution_progress / started_schedulables_count) * 100.0f) / 100.0f, &_average_execution_progress);
} }
if (instant != 0) if (instant != 0)
{ {
modf((((float)_terminated_processes / (float)instant) * 1000.0f) / 1000.0f, &_average_processes_throughput); modff((((float)_terminated_processes / (float)instant) * 1000.0f) / 1000.0f, &_average_processes_throughput);
modf((((float)_terminated_threads / (float)instant) * 1000.0f) / 1000.0f, &_average_threads_throughput); modff((((float)_terminated_threads / (float)instant) * 1000.0f) / 1000.0f, &_average_threads_throughput);
} }
} }