Skip to content
Snippets Groups Projects
Commit 5f04da02 authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[*] Fixed -from/-to

parent 176df0ef
No related branches found
No related tags found
1 merge request!24Support 3689
...@@ -666,13 +666,14 @@ static int s_cli_net(int argc, const char ** argv, char **a_str_reply) ...@@ -666,13 +666,14 @@ static int s_cli_net(int argc, const char ** argv, char **a_str_reply)
const char c_time_fmt[]="%Y-%m-%d_%H:%M:%S"; const char c_time_fmt[]="%Y-%m-%d_%H:%M:%S";
// Read from/to time // Read from/to time
dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-from ", &l_from_str); dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-from", &l_from_str);
dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-to", &l_to_str); dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-to", &l_to_str);
dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-prev_sec", &l_prev_sec_str); dap_chain_node_cli_find_option_val(argv, arg_index, argc, "-prev_sec", &l_prev_sec_str);
if (l_from_str ){ if (l_from_str ){
strptime(l_from_str,c_time_fmt,&l_from_tm); strptime(l_from_str,c_time_fmt,&l_from_tm);
} }
if (l_to_str){ if (l_to_str){
strptime(l_to_str,c_time_fmt,&l_to_tm); strptime(l_to_str,c_time_fmt,&l_to_tm);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment