Skip to content

mxqsub.c: Enforce usage of an unit, and explain it #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ static void print_usage(void)
" -j, --threads=NUMBER set number of threads (default: 1)\n"
" -m, --memory=SIZE set amount of memory (default: 2G)\n"
"\n"
" [SIZE] may be suffixed with a combination of T, G and M\n"
" to specify tebibytes, gibibytes and mebibytes.\n"
" Defaults to mebibytes if no suffix is set.\n"
" [SIZE] To specify megabytes, gigabytes or terrabytes,\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

give me a hint ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think of planets.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which system?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sol.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something terestrial I guess ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, could be ...

" size must be suffixed with a unit (M, G or T).\n"
"\n"
" -t, --runtime=TIME set runtime (default: 15m)\n"
"\n"
Expand Down Expand Up @@ -846,6 +845,9 @@ int main(int argc, char *argv[])
exit(EX_CONFIG);
}
arg_memory = bytes/1024/1024;
} else {
mx_log_crit("--memory '%s': Size must have a unit (M, G, T).", optctl.optarg);
exit(EX_CONFIG);
}
break;

Expand Down