mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 11:30:03 +05:30
C: clock-malfunction-imitation.c: reformat
This commit is contained in:
parent
a0d4c9d104
commit
8f4b853094
@ -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--;
|
||||
|
Loading…
Reference in New Issue
Block a user