aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin Lange <k@dakko.us>2011-12-04 14:06:35 -0600
committerKevin Lange <k@dakko.us>2011-12-04 14:06:35 -0600
commit387400bbbded59974fd0410d62fca2d08975524e (patch)
treefda8ee6bf3283a36d7b2f9ba19b737f93fab5d00 /src
parent48ec643ed160eee76c118cc32b051d6e4397293b (diff)
downloadnyancat-387400bbbded59974fd0410d62fca2d08975524e.tar.gz
Wow, that was dumb
Diffstat (limited to 'src')
-rw-r--r--src/nyancat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 36d58c4..3a7a4b2 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -569,10 +569,10 @@ ready:
time(&current);
double diff = difftime(current, start);
/* Now count the length of the time difference so we can center */
- int nLen = (int)diff;
+ int nLen = digits((int)diff);
int width = (80 - 29 - nLen) / 2;
/* Spit out some spaces so that we're actually centered */
- while (width) {
+ while (width > 0) {
printf(" ");
width--;
}