Skip to content

Commit

Permalink
minors
Browse files Browse the repository at this point in the history
  • Loading branch information
justanhduc committed Nov 10, 2020
1 parent a45e945 commit 87dc535
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions list.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static char * print_noresult(const struct Job *p)
output_filename = ofilename_shown(p);

maxlen = 4 + 1 + 10 + 1 + max(20, strlen(output_filename)) + 1 + 8 + 1
+ 14 + 1 + strlen(p->command) + 20; /* 20 is the margin for errors */
+ 25 + 1 + strlen(p->command) + 20; /* 20 is the margin for errors */

if (p->label)
maxlen += 3 + strlen(p->label);
Expand Down Expand Up @@ -190,7 +190,7 @@ static char * print_result(const struct Job *p)
}

if (p->label)
snprintf(line, maxlen, "%-4i %-10s %-20s %-8i %0.2f%s/%0.2f%s/%0.2f%s %s[%s]"
snprintf(line, maxlen, "%-4i %-10s %-20s %-8i %5.2f%s/%5.2f%s/%5.2f%-6s %s[%s]"
"%s\n",
p->jobid,
jobstate,
Expand All @@ -206,7 +206,7 @@ static char * print_result(const struct Job *p)
p->label,
p->command);
else
snprintf(line, maxlen, "%-4i %-10s %-20s %-8i %0.2f%s/%0.2f%s/%0.2f%s %s%s\n",
snprintf(line, maxlen, "%-4i %-10s %-20s %-8i %5.2f%s/%5.2f%s/%5.2f%-6s %s%s\n",
p->jobid,
jobstate,
output_filename,
Expand Down
2 changes: 2 additions & 0 deletions reinstall
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
make clean
make
sudo make uninstall
sudo make install

0 comments on commit 87dc535

Please sign in to comment.