tincrease space for two digit timer - sphere - GPU-based 3D discrete element me… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 269dbb395e45f4f7b81306261dcecb62cb7fc79d | |
parent 8aaf2c7c63ea6ef9644e95b9a5c42ecb8c094faa | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 9 May 2014 10:27:31 +0200 | |
increase space for two digit timer | |
Diffstat: | |
M src/sphere_status.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/sphere_status.c b/src/sphere_status.c | |
t@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) | |
while ((ent = readdir(dir)) != NULL) { | |
if ((dotpos = strstr(ent->d_name, ".status.dat")) != NULL) { | |
*dotpos = '\0'; | |
- sprintf(outstring, "%-44s ", ent->d_name); | |
+ sprintf(outstring, "%-45s ", ent->d_name); | |
for (p = outstring; *p != '\0'; p++) | |
if (*p == ' ') *p = '.'; | |
printf(" %s ", outstring); | |
t@@ -95,7 +95,7 @@ int open_status_file(char* cwd, char* sim_name, int format) { | |
} | |
if (format == 1) { | |
- printf("%.2fs / %3.0f%% / %5d", | |
+ printf("%5.2fs / %3.0f%% / %5d", | |
time_current, time_percentage, file_nr); | |
} else { | |
printf("Reading %s:\n" |