mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace cleanup in core/divelogexportlogic.cpp
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
862e121532
commit
4d377926e0
1 changed files with 3 additions and 3 deletions
|
@ -99,15 +99,15 @@ static void exportHTMLstatistics(const QString filename, struct htmlExportSettin
|
||||||
out << "\"AVG_SAC\":\"" << get_volume_string(stats_yearly[i].avg_sac) << "\",";
|
out << "\"AVG_SAC\":\"" << get_volume_string(stats_yearly[i].avg_sac) << "\",";
|
||||||
out << "\"MIN_SAC\":\"" << get_volume_string(stats_yearly[i].min_sac) << "\",";
|
out << "\"MIN_SAC\":\"" << get_volume_string(stats_yearly[i].min_sac) << "\",";
|
||||||
out << "\"MAX_SAC\":\"" << get_volume_string(stats_yearly[i].max_sac) << "\",";
|
out << "\"MAX_SAC\":\"" << get_volume_string(stats_yearly[i].max_sac) << "\",";
|
||||||
if ( stats_yearly[i].combined_count ) {
|
if (stats_yearly[i].combined_count) {
|
||||||
temperature_t avg_temp;
|
temperature_t avg_temp;
|
||||||
avg_temp.mkelvin = stats_yearly[i].combined_temp.mkelvin / stats_yearly[i].combined_count;
|
avg_temp.mkelvin = stats_yearly[i].combined_temp.mkelvin / stats_yearly[i].combined_count;
|
||||||
out << "\"AVG_TEMP\":\"" << get_temperature_string(avg_temp) << "\",";
|
out << "\"AVG_TEMP\":\"" << get_temperature_string(avg_temp) << "\",";
|
||||||
} else {
|
} else {
|
||||||
out << "\"AVG_TEMP\":\"0.0\",";
|
out << "\"AVG_TEMP\":\"0.0\",";
|
||||||
}
|
}
|
||||||
out << "\"MIN_TEMP\":\"" << ( stats_yearly[i].min_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].min_temp)) << "\",";
|
out << "\"MIN_TEMP\":\"" << (stats_yearly[i].min_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].min_temp)) << "\",";
|
||||||
out << "\"MAX_TEMP\":\"" << ( stats_yearly[i].max_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].max_temp)) << "\",";
|
out << "\"MAX_TEMP\":\"" << (stats_yearly[i].max_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].max_temp)) << "\",";
|
||||||
out << "},";
|
out << "},";
|
||||||
total_stats.selection_size += stats_yearly[i].selection_size;
|
total_stats.selection_size += stats_yearly[i].selection_size;
|
||||||
total_stats.total_time.seconds += stats_yearly[i].total_time.seconds;
|
total_stats.total_time.seconds += stats_yearly[i].total_time.seconds;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue