diff options
-rw-r--r-- | src/gui_index.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index 589e0281..98f8a84c 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -799,6 +799,9 @@ int read_number_processed(const char *filename) /* Normal situation if SLURM job hasn't started yet */ if ( fh == NULL ) return 0; + /* Only look at the last part of the file */ + fseek(fh, -4096, SEEK_END); + do { char line[1024]; if ( fgets(line, 1024, fh) == NULL ) break; |