IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10973


Ignore:
Timestamp:
Jan 8, 2007, 2:40:01 PM (19 years ago)
Author:
jhoblitt
Message:

add -pendingimfile -faulted

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/regtool.c

    r10972 r10973  
    176176    }
    177177
     178    bool faulted = psMetadataLookupU64(&status, config->args, "-faulted");
     179    if (!status) {
     180        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -faulted");
     181        return false;
     182    }
     183
    178184    // select newImfiles that:
    179185    // exp_tag is in newExp
     
    192198        " AND rawDetrendExp.exp_tag IS NULL"
    193199    );
     200
     201    if (faulted) {
     202        psStringAppend(&query, " %s", "AND newImfile.flags > 0");
     203    }
    194204
    195205    // treat limit == 0 as "no limit"
  • trunk/ippTools/src/regtoolConfig.c

    r10972 r10973  
    6868    psMetadataAddU64(pendingimfileArgs, PS_LIST_TAIL, "-limit",  0,
    6969        "limit result set to N items", 0);
     70    psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-faulted",  0,
     71        "only return imfiles with a fault status set", false);
    7072    psMetadataAddBool(pendingimfileArgs, PS_LIST_TAIL, "-simple",  0,
    7173        "use the simple output format", false);
Note: See TracChangeset for help on using the changeset viewer.