Changeset 42712 for trunk/ippTools/src
- Timestamp:
- Jul 18, 2024, 2:55:58 PM (2 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 2 edited
-
addtool.c (modified) (4 diffs)
-
addtoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/addtool.c
r41213 r42712 140 140 PXOPT_LOOKUP_BOOL(uncensored, config->args, "-uncensored", false); 141 141 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); 142 PXOPT_LOOKUP_BOOL(addrand, config->args, "-addrand", false); 142 143 143 144 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); … … 424 425 else if (strcmp(stage,"fullforce_summary") == 0) { 425 426 psStringAppend(&query, " GROUP BY ff_id "); //needs to be checked, but should be fine: want 1 ff summary cmf. 427 } 428 429 // random order of pending files 430 if (addrand) { 431 psStringAppend(&query, " order by rand()"); 426 432 } 427 433 … … 1089 1095 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1090 1096 PXOPT_LOOKUP_BOOL(multiadd, config->args, "-multiadd", false); 1097 PXOPT_LOOKUP_BOOL(addrand, config->args, "-addrand", false); 1091 1098 1092 1099 psString query = NULL; … … 1125 1132 psStringAppend(&query, " AND %s", whereClause); 1126 1133 psFree(whereClause); 1134 } 1135 // random order of pending files 1136 if (addrand) { 1137 psStringAppend(&query, " ORDER BY RAND()"); 1127 1138 } 1128 1139 psFree(where); -
trunk/ippTools/src/addtoolConfig.c
r41654 r42712 71 71 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 72 72 psMetadataAddU64(definebyqueryArgs, PS_LIST_TAIL, "-limit", 0, "limit result set to N items", 0); 73 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-addrand", 0, "set pending add_id randomly processing", false); 73 74 74 75 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-set_minidvodb", 0, "use minidvodb", false); … … 127 128 psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); 128 129 psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-multiadd", 0, "for addstar multi mode, group by stage_id ", false); 130 psMetadataAddBool(pendingexpArgs, PS_LIST_TAIL, "-addrand", 0, "set pending add_id randomly processing", false); 129 131 130 132 // -addprocessedexp
Note:
See TracChangeset
for help on using the changeset viewer.
