Commit 770a83b8 by zacharyc

Fixed bug in precision argument for ethstream


git-svn-id: https://bucket.mit.edu/svn/nilm/acquisition/ethstream@7260 ddd99763-3ecb-0310-9145-efcb8ce7c51f
parent 627a1bf2
Showing with 7 additions and 1 deletions
...@@ -163,7 +163,13 @@ int main(int argc, char *argv[]) ...@@ -163,7 +163,13 @@ int main(int argc, char *argv[])
} }
break; break;
case 'p': case 'p':
precision++; tmp = strtol(optarg, &endp, 0);
if (tmp <= 3 && tmp >= 0) {
precision = tmp;
} else {
info("Bad argument to p: %s\n",optarg);
goto printhelp;
}
break; break;
case 'N': case 'N':
nerdjack++; nerdjack++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment