From 8f4b853094a21916d03b7daf0b30fa88c5124cbe Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 21 Feb 2024 21:53:22 +0300 Subject: [PATCH] C: clock-malfunction-imitation.c: reformat --- c-programming/experiments/clock-malfunction-imitation.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/c-programming/experiments/clock-malfunction-imitation.c b/c-programming/experiments/clock-malfunction-imitation.c index d316d08..16310f1 100644 --- a/c-programming/experiments/clock-malfunction-imitation.c +++ b/c-programming/experiments/clock-malfunction-imitation.c @@ -67,9 +67,8 @@ time_t clock_exponential_growth(time_t* x) { if (ticks_before_accident == 0) { y += counter++; counter *= counter; - } else { + } else ticks_before_accident--; - } CLOCK_FUN_END } @@ -108,9 +107,9 @@ time_t clock_reverse(time_t* x) { static time_t counter = 1, old_time; - if (ticks_before_accident == 0) { + if (ticks_before_accident == 0) y = old_time - counter++; - } else { + else { time(&y); old_time = y; ticks_before_accident--;