fixed indentation

Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
This commit is contained in:
Maximilian Güntner 2012-06-09 22:40:12 +02:00
parent b7ae9ad5b1
commit 0a7fa8ea50

View file

@ -189,8 +189,7 @@ static void dump_pi (struct plot_info *pi)
static int get_maxtime(struct plot_info *pi) static int get_maxtime(struct plot_info *pi)
{ {
int seconds = pi->maxtime; int seconds = pi->maxtime;
if (seconds < 600) if (seconds < 600) {
{
/* Possible apnea dive, we scale accordingly */ /* Possible apnea dive, we scale accordingly */
return ROUND_UP(seconds+seconds/4, 60); return ROUND_UP(seconds+seconds/4, 60);
} else { } else {
@ -458,8 +457,7 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
maxdepth = get_maxdepth(pi); maxdepth = get_maxdepth(pi);
/* We check whether this has been an apnea dive and overwrite /* We check whether this has been an apnea dive and overwrite
* the increments in order to get reasonable time markers */ * the increments in order to get reasonable time markers */
if (maxtime < 600) if (maxtime < 600) {
{
increments[0] = 10; increments[0] = 10;
increments[1] = 20; increments[1] = 20;
increments[2] = 30; increments[2] = 30;
@ -491,8 +489,7 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi
/* now the text on the time markers */ /* now the text on the time markers */
text_render_options_t tro = {10, TIME_TEXT, CENTER, TOP}; text_render_options_t tro = {10, TIME_TEXT, CENTER, TOP};
if (maxtime < 600) if (maxtime < 600) {
{
/* Be a bit more verbose with shorter (apnea) dives */ /* Be a bit more verbose with shorter (apnea) dives */
for (i = incr; i < maxtime; i += incr) for (i = incr; i < maxtime; i += incr)
plot_text(gc, &tro, i, 1, "%d:%d", i/60, i%60); plot_text(gc, &tro, i, 1, "%d:%d", i/60, i%60);