Index: trunk/ippTools/src/pstamptool.c
===================================================================
--- trunk/ippTools/src/pstamptool.c	(revision 27182)
+++ trunk/ippTools/src/pstamptool.c	(revision 27282)
@@ -147,4 +147,5 @@
     PXOPT_COPY_S64(config->args, where, "-ds_id", "ds_id", "==");
 
+    PXOPT_LOOKUP_BOOL(ready, config->args, "-ready", false);
     PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
 
@@ -161,4 +162,7 @@
     }
     psFree(where);
+    if (ready) {
+        psStringAppend(&query, " %s", "\nAND TIMESTAMPDIFF(SECOND, timestamp, now()) > pollInterval");
+    }
 
     if (!p_psDBRunQuery(config->dbh, query)) {
@@ -201,5 +205,5 @@
 
     if (!state && !lastFileset && !pollInterval && !update_timestamp && !label) {
-        psError(PS_ERR_UNKNOWN, true, "at least one of -last_fileset or -state is required");
+        psError(PS_ERR_UNKNOWN, true, "at least one of -last_fileset or -set_state is required");
         return false;
     }
