Skip to content

Commit

Permalink
Fix fast/slow doc
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscantero committed Oct 25, 2024
1 parent 9469907 commit a1eae7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 24 deletions.
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,20 +537,16 @@ Options:
UIntArray).
Default: UInt
--ftl, --fasttypelowerbound=VALUE
lower bound of data type of fast nodes (UInt|
Double|Bool|UIntArray).
lower bound of data type of fast nodes.
Default: min value of node type.
--ftu, --fasttypeupperbound=VALUE
upper bound of data type of fast nodes (UInt|
Double|Bool|UIntArray).
upper bound of data type of fast nodes.
Default: max value of node type.
--ftr, --fasttyperandomization=VALUE
randomization of fast nodes value (UInt|Double|
Bool|UIntArray).
randomization of fast nodes value.
Default: False
--fts, --fasttypestepsize=VALUE
step or increment size of fast nodes value (UInt|
Double|Bool|UIntArray).
step or increment size of fast nodes value.
Default: 1
--fsi, --fastnodesamplinginterval=VALUE
rate in milliseconds for pn.json client to sample
Expand All @@ -576,20 +572,16 @@ Options:
UIntArray).
Default: UInt
--stl, --slowtypelowerbound=VALUE
lower bound of data type of slow nodes (UInt|
Double|Bool|UIntArray).
lower bound of data type of slow nodes.
Default: min value of node type.
--stu, --slowtypeupperbound=VALUE
upper bound of data type of slow nodes (UInt|
Double|Bool|UIntArray).
upper bound of data type of slow nodes.
Default: max value of node type.
--str, --slowtyperandomization=VALUE
randomization of slow nodes value (UInt|Double|
Bool|UIntArray).
randomization of slow nodes value.
Default: False
--sts, --slowtypestepsize=VALUE
step or increment size of slow nodes value (UInt|
Double|Bool|UIntArray).
step or increment size of slow nodes value.
Default: 1
--ssi, --slownodesamplinginterval=VALUE
rate in milliseconds for pn.json client to sample
Expand Down
8 changes: 4 additions & 4 deletions src/PluginNodes/FastPluginNodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ public void AddOptions(Mono.Options.OptionSet optionSet)

optionSet.Add(
"ftl|fasttypelowerbound=",
$"lower bound of data type of fast nodes ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: min value of node type.",
$"lower bound of data type of fast nodes.\nDefault: min value of node type.",
(string s) => NodeMinValue = s);

optionSet.Add(
"ftu|fasttypeupperbound=",
$"upper bound of data type of fast nodes ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: max value of node type.",
$"upper bound of data type of fast nodes.\nDefault: max value of node type.",
(string s) => NodeMaxValue = s);

optionSet.Add(
"ftr|fasttyperandomization=",
$"randomization of fast nodes value ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: {NodeRandomization}",
$"randomization of fast nodes value.\nDefault: {NodeRandomization}",
(string s) => NodeRandomization = bool.Parse(s));

optionSet.Add(
"fts|fasttypestepsize=",
$"step or increment size of fast nodes value ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: {NodeStepSize}",
$"step or increment size of fast nodes value.\nDefault: {NodeStepSize}",
(string s) => NodeStepSize = SlowFastCommon.ParseStepSize(s));

optionSet.Add(
Expand Down
8 changes: 4 additions & 4 deletions src/PluginNodes/SlowPluginNodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ public void AddOptions(Mono.Options.OptionSet optionSet)

optionSet.Add(
"stl|slowtypelowerbound=",
$"lower bound of data type of slow nodes ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: min value of node type.",
$"lower bound of data type of slow nodes.\nDefault: min value of node type.",
(string s) => NodeMinValue = s);

optionSet.Add(
"stu|slowtypeupperbound=",
$"upper bound of data type of slow nodes ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: max value of node type.",
$"upper bound of data type of slow nodes.\nDefault: max value of node type.",
(string s) => NodeMaxValue = s);

optionSet.Add(
"str|slowtyperandomization=",
$"randomization of slow nodes value ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: {NodeRandomization}",
$"randomization of slow nodes value.\nDefault: {NodeRandomization}",
(string s) => NodeRandomization = bool.Parse(s));

optionSet.Add(
"sts|slowtypestepsize=",
$"step or increment size of slow nodes value ({string.Join("|", Enum.GetNames(typeof(NodeType)))}).\nDefault: {NodeStepSize}",
$"step or increment size of slow nodes value.\nDefault: {NodeStepSize}",
(string s) => NodeStepSize = SlowFastCommon.ParseStepSize(s));

optionSet.Add(
Expand Down

0 comments on commit a1eae7d

Please sign in to comment.