jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [trunk/] [modules/] [traffic/] [diagrams.pl] - Diff between revs 1 and 19

Show entire file Ignore whitespace

Rev 1 Rev 19
Line 81... Line 81...
$name =~ s/:/_/g; $name =~ s/:/_/g;
$device=$host.":p".$port; $device=$host.":p".$port;
$dbfile=$host."_".$port; $dbfile=$host."_".$port;
$dbfile=~ s/\./:/g; $dbfile=~ s/\./:/g;
   
} else { $name=$device; $name =~ s/:/_/g; $dbfile=$name; } } else {
  $name=$device;
  $name =~ s/:/_/g;
  $dbfile=$name;
  $name =~ s/\./_/g;
  }
} }
# if database exists, create images... # if database exists, create images...
print "creating images for $device ...\n"; print "creating images for $device ...\n";
if ( -e "./rrd/$dbfile.rrd") { if ( -e "./rrd/$dbfile.rrd") {
if ((! defined $maxin) || ($maxin eq "") || ($maxin == 0)) { if ((! defined $maxin) || ($maxin eq "") || ($maxin == 0)) {

Powered by WebSVN 2.2.1