diff options
author | bcollins <tailor@grayson> | 2006-06-01 13:19:26 -0400 |
---|---|---|
committer | Ben Collins <bcollins@ubuntu.com> | 2006-06-01 13:19:26 -0400 |
commit | c3be4f7eb1b6b70b98c6d93f639467f946cbe3a2 (patch) | |
tree | d58cb59175b14083164bfc5c867cf11326d3a628 | |
parent | 9b86ba681b03ad010cfd1a85d18f9b3e264aea4f (diff) | |
download | silo-c3be4f7eb1b6b70b98c6d93f639467f946cbe3a2.tar.gz |
[silo @ 133]
Slowdown the ticker.#
-rw-r--r-- | second/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/second/file.c b/second/file.c index 3bbf104..849d493 100644 --- a/second/file.c +++ b/second/file.c @@ -149,12 +149,15 @@ static int do_rotate = 0; static void rotate (void) { - static int i = 0; + static int i = 0, slowdown = 0; static char rot[] = "\\|/-"; if (!do_rotate) return; + if (slowdown++ % 4) + return; + printf ("%c\b", rot[i % 4]); i++; |