Show
Ignore:
Timestamp:
08/11/08 21:21:53 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218489713 +0000
git-parent:

[8c44e3b0e275f77a5f98f49c8b0ae180976694e9]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218489713 +0000
Message:

make this stuff use sid instead of uuid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/htdocs/index.php

    re7e6b89 re45ae44  
    1717  <?php foreach($db->get_checks($target) as $name => $check) { ?> 
    1818    <li> 
    19       <a href="bw_graph.php?id=<?php print $check['id'] ?>"><?php print $name ?></a><br /> 
     19      <a href="bw_graph.php?id=<?php print $check['sid'] ?>"><?php print $name ?></a><br /> 
    2020      <?php  0 && thumb_flash($id) ?> 
    2121      <ul> 
    2222        <?php foreach($check['numeric'] as $n) { ?> 
    23         <li><a href="generic_graph.php?metric=nl-<?php print $check['id'] ?>-<?php print $n ?>&cnt=1400"><?php print $n ?></a></li> 
     23        <li><a href="generic_graph.php?metric=nl-<?php print $check['sid'] ?>-<?php print $n ?>&cnt=1400"><?php print $n ?></a></li> 
    2424        <?php } ?> 
    2525      </ul> 
  • ui/web/lib/Reconnoiter_DB.php

    ree17710 re45ae44  
    3232  } 
    3333  function get_var_for_window($uuid, $name, $start, $end, $expected) { 
    34     $sth = $this->db->prepare("select * from stratcon.fetch_varset(?,?,?,?,?)"); 
     34    $sth = preg_match('/^\d+$/', $uuid) ? 
     35      $this->db->prepare("select * from stratcon.fetch_varset(? ::int,?,?,?,?)") : 
     36      $this->db->prepare("select * from stratcon.fetch_varset(? ::uuid,?,?,?,?)"); 
    3537    $sth->execute(array($uuid,$name,$start,$end,$expected)); 
    3638    $rv = array(); 
     
    164166      if(!isset($rv[$label]))  
    165167        $rv[$label] = array ('id' => $row['id'], 
     168                             'sid' => $row['sid'], 
    166169                             'text' => array(), 
    167170                             'numeric' => array() );