From 54e232824ac27241425169c0a8472e31812b0d6e Mon Sep 17 00:00:00 2001 From: Jayant Krishnamurthy Date: Mon, 5 Dec 2022 10:53:27 -0800 Subject: [PATCH 1/3] fix --- pcapps/pythd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcapps/pythd.cpp b/pcapps/pythd.cpp index 3e98392b0..07ba857bb 100644 --- a/pcapps/pythd.cpp +++ b/pcapps/pythd.cpp @@ -129,8 +129,8 @@ int main(int argc, char **argv) case 'x': do_tx = false; break; case 'z': do_ws = false; break; case 'd': do_debug = true; break; - case 'u': cu_units = strtoul(optarg, NULL, 0); break; - case 'v': cu_price = strtoul(optarg, NULL, 0); break; + case 'u': cu_units = strtoul(optarg, NULL, 0); std::cout << "cu_units" << cu_units << std::endl; break; + case 'v': cu_price = strtoul(optarg, NULL, 0); std::cout << "cu_price" << cu_price << std::endl; break; default: return usage(); } } From 2cf1d6cf4cd4c95a3bda2a35b15a8702a690d3bc Mon Sep 17 00:00:00 2001 From: Jayant Krishnamurthy Date: Mon, 5 Dec 2022 11:05:38 -0800 Subject: [PATCH 2/3] add to flags --- pcapps/pythd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcapps/pythd.cpp b/pcapps/pythd.cpp index 07ba857bb..ff558b14e 100644 --- a/pcapps/pythd.cpp +++ b/pcapps/pythd.cpp @@ -112,7 +112,7 @@ int main(int argc, char **argv) unsigned cu_price = 0; unsigned max_batch_size = 0; bool do_wait = true, do_tx = true, do_ws = true, do_debug = false; - while( (opt = ::getopt(argc,argv, "r:s:t:p:i:k:w:c:l:m:b:dnxhz" )) != -1 ) { + while( (opt = ::getopt(argc,argv, "r:s:t:p:i:k:w:c:l:m:b:u:v:dnxhz" )) != -1 ) { switch(opt) { case 'r': rpc_host = optarg; break; case 's': secondary_rpc_host = optarg; break; From b5e9082ac0786882caf1649c4041e6c793fcee60 Mon Sep 17 00:00:00 2001 From: Jayant Krishnamurthy Date: Mon, 5 Dec 2022 11:07:54 -0800 Subject: [PATCH 3/3] fix --- pcapps/pythd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcapps/pythd.cpp b/pcapps/pythd.cpp index ff558b14e..0151b5fa0 100644 --- a/pcapps/pythd.cpp +++ b/pcapps/pythd.cpp @@ -129,8 +129,8 @@ int main(int argc, char **argv) case 'x': do_tx = false; break; case 'z': do_ws = false; break; case 'd': do_debug = true; break; - case 'u': cu_units = strtoul(optarg, NULL, 0); std::cout << "cu_units" << cu_units << std::endl; break; - case 'v': cu_price = strtoul(optarg, NULL, 0); std::cout << "cu_price" << cu_price << std::endl; break; + case 'u': cu_units = strtoul(optarg, NULL, 0); break; + case 'v': cu_price = strtoul(optarg, NULL, 0); break; default: return usage(); } }