Skip to content

Commit

Permalink
Better output whilst churning through old sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-xo committed Apr 18, 2022
1 parent 7869181 commit d4526e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SSL/HistoryAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ protected function analyzeDir($from_dir)
foreach($fps as $fp)
{
$fn = basename($fp);
echo "** Parsing {$fn}...\n";
try {
$parser = new SSLParser($dom);
$parsed_dom = $parser->parse($fp);
Expand All @@ -151,12 +150,11 @@ protected function analyzeDir($from_dir)
}
$parser->close();

echo "++ Saw " . count($parsed_dom) . " chunks\n";
$tracks = $parsed_dom->getDedupedTracks();
$count = count($tracks);
echo "++ Extracted $count tracks\n";

echo "** Importing to db\n";
echo "++ session $fn: " . count($parsed_dom) . " chunks yielded $count tracks to add to the DB\n";

foreach($tracks as $track)
{
/* @var $track SSLTrack */
Expand Down

0 comments on commit d4526e8

Please sign in to comment.