IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27282


Ignore:
Timestamp:
Mar 15, 2010, 11:44:09 AM (16 years ago)
Author:
bills
Message:

in -datastore mode make the (time - timestamp) > pollInterval optional

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r27182 r27282  
    147147    PXOPT_COPY_S64(config->args, where, "-ds_id", "ds_id", "==");
    148148
     149    PXOPT_LOOKUP_BOOL(ready, config->args, "-ready", false);
    149150    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    150151
     
    161162    }
    162163    psFree(where);
     164    if (ready) {
     165        psStringAppend(&query, " %s", "\nAND TIMESTAMPDIFF(SECOND, timestamp, now()) > pollInterval");
     166    }
    163167
    164168    if (!p_psDBRunQuery(config->dbh, query)) {
     
    201205
    202206    if (!state && !lastFileset && !pollInterval && !update_timestamp && !label) {
    203         psError(PS_ERR_UNKNOWN, true, "at least one of -last_fileset or -state is required");
     207        psError(PS_ERR_UNKNOWN, true, "at least one of -last_fileset or -set_state is required");
    204208        return false;
    205209    }
  • trunk/ippTools/src/pstamptoolConfig.c

    r27198 r27282  
    5555    psMetadata *datastoreArgs = psMetadataAlloc();
    5656    psMetadataAddS64(datastoreArgs, PS_LIST_TAIL, "-ds_id", 0,            "define ds_id", 0);
     57    psMetadataAddBool(datastoreArgs, PS_LIST_TAIL, "-ready", 0,           "list data stores ready to be polled", false);
    5758    psMetadataAddBool(datastoreArgs, PS_LIST_TAIL, "-simple", 0,            "use the simple output format", false);
    5859
Note: See TracChangeset for help on using the changeset viewer.