Skip to content

Commit 6385603

Browse files
committed
fix: Force minimum of 16 threads
1 parent 41af0db commit 6385603

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

entries/sbalazs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Székely Balázs
22

33
This entry is made via email since the person in question no longer has a GitHub account.
4+
Usage: obrc <source_file> <threadCnt(optional-default 16)>
5+
The default and minimal thread count is 16.

entries/sbalazs/src/obrc.lpr

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
end;
2929

3030
if (Trim(ParamStr(2)) <> '') then
31-
TC := StrToIntDef(ParamStr(2), 16)
31+
begin
32+
TC := StrToIntDef(ParamStr(2), 16);
33+
if TC < 16 then
34+
TC := 16;
35+
end
3236
else
3337
TC := 16;
3438

0 commit comments

Comments
 (0)