IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40095 for trunk/ippMonitor


Ignore:
Timestamp:
Jul 12, 2017, 3:33:15 PM (9 years ago)
Author:
eugene
Message:

nebulous time series should not quit if minY = 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/czartool/czartool/CzarDb.pm

    r40094 r40095  
    10701070SQL
    10711071
     1072# test to print out the sql
     1073#     print "SQL: ", (<<CODE);
     1074#     SELECT
     1075#         MAX(available), MIN(available), MAX(usable), MIN(usable),
     1076#         DATE_FORMAT(MAX(timestamp),'$self->{_dateFormat}'),
     1077#         DATE_FORMAT(MIN(timestamp),'$self->{_dateFormat}'),
     1078#         TIME_TO_SEC(TIMEDIFF(max(timestamp ), min(timestamp)))
     1079#             FROM cluster_space
     1080#             WHERE timestamp >= '$fromTime' AND timestamp <= '$toTime';
     1081# CODE
     1082
    10721083    if (!$query->execute) {return undef;}
    10731084
     
    10761087    ${$minY} = ($minAvailable > $minUsable ? $minAvailable : $minUsable);
    10771088
    1078     if (!${$maxY} || !${$minY} || !${$maxX} || !${$minX} || !${$timeDiff}) {return 0;}
     1089#   if (!${$maxY} || !${$minY} || !${$maxX} || !${$minX} || !${$timeDiff}) {return 0;}
     1090    if (!${$maxY} || !${$maxX} || !${$minX} || !${$timeDiff}) {return 0;}
    10791091
    10801092    $query = $self->{_db}->prepare(<<SQL);
Note: See TracChangeset for help on using the changeset viewer.