Skip to content

Commit

Permalink
Merge pull request #158 from mariux64/next
Browse files Browse the repository at this point in the history
mxqsub: Implement --tmpdir argument without units
  • Loading branch information
donald authored May 25, 2024
2 parents c2a33f8 + 333912e commit 2c1f0e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,10 @@ int main(int argc, char *argv[])
break;

case 7:
{
u_int64_t arg_tmpdir_mb;
if (mx_strtou64(optctl.optarg, &arg_tmpdir_mb) == 0) {
arg_tmpdir = (arg_tmpdir_mb+1024-1)/1024;
} else {
unsigned long long int bytes;
if(mx_strtobytes(optctl.optarg, &bytes) < 0) {
mx_log_crit("--tmpdir '%s': %m", optctl.optarg);
Expand Down

0 comments on commit 2c1f0e8

Please sign in to comment.