Show
Ignore:
Timestamp:
10/28/10 17:18:31 (12 years ago)
Author:
andreu
Message:

New PHP script used in crontab to generate graphics posted on the self-monitoring web site

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/web/perf/menulive.php

    r125 r126  
    3434$RouterEngineID = array(); 
    3535$finputTPL = fopen($TPL_DEF,'r'); 
     36$TPLNumberTotal = 0; 
     37$OTPLNumberTotal = 0; 
    3638while (!feof ($finputTPL)) { 
    3739  $line = fgets($finputTPL, 512); 
    3840  $line_split = split(" ",$line); 
     41  if ( $line_split[1] == "OpTId" ) { 
     42     $OTPLNumberTotal += 1; 
     43  } 
    3944  if ( $line_split[1] == "TId" ) { 
     45    $TPLNumberTotal += 1; 
    4046    $rtr_tmp = $line_split[0]; 
    4147    if ($RouterEngineID) { 
     
    104110print "        </div> \n"; 
    105111 
    106 $res = `cat $TPL_DEF | grep " TId " | wc -l | awk '{print $1}'`; 
    107  
    108 if  
     112##$res = `cat $TPL_DEF | grep " TId " | wc -l | awk '{print $1}'`; 
    109113 
    110114?>