IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11290


Ignore:
Timestamp:
Jan 25, 2007, 8:27:18 AM (19 years ago)
Author:
eugene
Message:

fixed cmd line args for stats, added tests

Location:
trunk/Ohana/src/opihi/cmd.data
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.data/stats.c

    r11231 r11290  
    2929  }
    3030
    31   if ((argc != 2) | (argc != 6)) {
     31  if ((argc != 2) && (argc != 6)) {
    3232    gprint (GP_ERR, "USAGE: stats <buffer> sx sy nx ny\n");
    3333    gprint (GP_ERR, "OR:    stats <buffer>\n");
     
    3737  if ((buf = SelectBuffer (argv[1], OLDBUFFER, TRUE)) == NULL) return (FALSE);
    3838
    39   if (argc == 2) {
     39  if (argc == 6) {
    4040    sx = strcmp (argv[2], "-") ? atof (argv[2]) : 0;
    4141    sy = strcmp (argv[3], "-") ? atof (argv[3]) : 0;
Note: See TracChangeset for help on using the changeset viewer.