Wow, that was dumb
This commit is contained in:
parent
48ec643ed1
commit
387400bbbd
@ -569,10 +569,10 @@ ready:
|
|||||||
time(¤t);
|
time(¤t);
|
||||||
double diff = difftime(current, start);
|
double diff = difftime(current, start);
|
||||||
/* Now count the length of the time difference so we can center */
|
/* 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;
|
int width = (80 - 29 - nLen) / 2;
|
||||||
/* Spit out some spaces so that we're actually centered */
|
/* Spit out some spaces so that we're actually centered */
|
||||||
while (width) {
|
while (width > 0) {
|
||||||
printf(" ");
|
printf(" ");
|
||||||
width--;
|
width--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user