clean up turbonss-makecorpus
This commit is contained in:
parent
1dfdd3cdbd
commit
5178149852
|
@ -22,8 +22,8 @@ const usage =
|
|||
\\ -h Print this help message and exit
|
||||
\\ --directory Write files to given directory (default: .)
|
||||
\\ --num-users Number of users (default: 20000)
|
||||
\\ --num-groups Number of groups (default: 5000)
|
||||
\\ --avg-members Average members per group (default: 20)
|
||||
\\ --num-groups Number of groups (default: 10000)
|
||||
\\ --avg-members Average members per group (default: 1000)
|
||||
\\
|
||||
;
|
||||
|
||||
|
@ -71,7 +71,6 @@ fn execute(
|
|||
}
|
||||
|
||||
if (myflags.args.len != 0) {
|
||||
std.debug.print("args: {s}\n", .{myflags.args});
|
||||
stderr.writeAll(usage) catch {};
|
||||
return error.User;
|
||||
}
|
||||
|
@ -79,7 +78,6 @@ fn execute(
|
|||
const num_users = parseInt(stderr, myflags, "--num-users", 20000) orelse return error.User;
|
||||
const num_groups = parseInt(stderr, myflags, "--num-groups", 5000) orelse return error.User;
|
||||
const avg_members = parseInt(stderr, myflags, "--avg-members", 20) orelse return error.User;
|
||||
std.debug.print("num_users={d}\n", .{num_users});
|
||||
|
||||
// longest possible path name: 16k? dunno.
|
||||
var buf: [1 << 14]u8 = undefined;
|
||||
|
@ -115,7 +113,7 @@ fn execute(
|
|||
try dump_group(group_wr.writer(), num_users, num_groups, avg_members);
|
||||
group_wr.flush() catch return error.IO;
|
||||
|
||||
std.debug.print("\nwrote users={d} groups={d} avg-members={d} to {s}\n", .{
|
||||
std.debug.print("wrote users={d} groups={d} avg-members={d} to {s}\n", .{
|
||||
num_users,
|
||||
num_groups,
|
||||
avg_members,
|
||||
|
|
Loading…
Reference in New Issue