while (<STDIN>) {
chomp;
/^#/ && next;
- my ($t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
+ my ($id, $t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
print ' . $ARGV[0] . ', "\n";
}
';
while (<STDIN>) {
chomp;
/^#/ && next;
- my ($t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
+ my ($id, $t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
if (' . $ARGV[0] . ') {
print $_, "\n";
}
use warnings;
use POSIX;
-print "# time width Total TCPErr Nocache CacheHit CacheMiss LenTotal NTimings TimeTotal TimeTMin TimeTMax TimeWait TimeWMin TimeWMax NGETs NPOSTs\n";
+print "# id time width Total TCPErr Nocache CacheHit CacheMiss LenTotal NTimings TimeTotal TimeTMin TimeTMax TimeWait TimeWMin TimeWMax NGETs NPOSTs\n";
my $histogran = 60;
my %hist = ();
while (<>) {
chomp;
/^#/ && next;
- my ($t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
+ my ($id, $t1, $t2, $src, $dst, $ffor, $result, $cache, $queue, $length, $totaltime, $waittime, $ctype, $method, $url) = split /\s+/;
my ($tY, $tm, $td) = split (/-/, $t1);
my ($tH, $tM, $tS) = split (/:/, $t2);
my $tt = POSIX::mktime($tS, $tM, $tH, $td, $tm-1, $tY-1900);