Changeset 24759 for trunk/ippMonitor/raw/ipp.php
- Timestamp:
- Jul 12, 2009, 10:49:08 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/ipp.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/ipp.php
r23419 r24759 412 412 } 413 413 414 function check_restrict ($key, $where, $mode ) {414 function check_restrict ($key, $where, $mode, $scale) { 415 415 $htmlkey = preg_replace ('|\.|', '_', $key); 416 416 if ($mode == 'min') { … … 431 431 } else { 432 432 $where = "WHERE"; 433 } 434 435 if ($scale != 1.0) { 436 $fvalue = $value * $scale; 437 } else { 438 $fvalue = $value; 433 439 } 434 440 … … 439 445 if ($mode == 'min') { 440 446 // can we pass the '%' through the html? 441 $where = $where . " $key >= '$ value'";447 $where = $where . " $key >= '$fvalue'"; 442 448 } 443 449 if ($mode == 'max') { 444 450 // can we pass the '%' through the html? 445 $where = $where . " $key <= '$ value'";451 $where = $where . " $key <= '$fvalue'"; 446 452 } 447 453 … … 613 619 if ($format == '%T') { 614 620 $format = '%s'; 621 } 622 if ($format == '%C') { 623 $format = '%10.6f'; 615 624 } 616 625 if ($format == '%t') {
Note:
See TracChangeset
for help on using the changeset viewer.
