diff options
author | Kevin Lange <k@dakko.us> | 2011-12-04 14:06:35 -0600 |
---|---|---|
committer | Kevin Lange <k@dakko.us> | 2011-12-04 14:06:35 -0600 |
commit | 387400bbbded59974fd0410d62fca2d08975524e (patch) | |
tree | fda8ee6bf3283a36d7b2f9ba19b737f93fab5d00 | |
parent | 48ec643ed160eee76c118cc32b051d6e4397293b (diff) | |
download | nyancat-387400bbbded59974fd0410d62fca2d08975524e.tar.gz |
Wow, that was dumb
-rw-r--r-- | src/nyancat.c | 4 |
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(¤t); 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--; } |