Changeset 25027 for branches/pap/ippMonitor/scripts/generate
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippMonitor/scripts/generate (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippMonitor/scripts/generate
r21044 r25027 308 308 if ($value eq "*") { next; } 309 309 if ($format[$i] eq "%s") { 310 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n"; 311 } else { 312 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string');\n"; 313 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min');\n"; 314 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max');\n"; 315 } 310 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string', 1.0);\n"; 311 next; 312 } 313 if ($format[$i] eq "%C") { 314 # convert the RA & DEC limits to radians for comparison 315 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min', 0.017453);\n"; 316 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 0.017453);\n"; 317 next; 318 } 319 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'string', 1.0);\n"; 320 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'min', 1.0);\n"; 321 print FILE "\$WHERE = check_restrict ('$value', \$WHERE, 'max', 1.0);\n"; 316 322 } 317 323 print FILE "\$WHERE = check_ordering ('$GROUPS', \$WHERE);\n";
Note:
See TracChangeset
for help on using the changeset viewer.
