Commit a87e7c55 authored by Philip Carns's avatar Philip Carns

added human-readable number parsing to job summary


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@249 3b7491f3-a168-0410-bf4b-c445ed680a29
parent a6eb116e
......@@ -12,6 +12,7 @@ use File::Temp qw/ tempdir /;
use Cwd;
use Getopt::Long;
use English;
use Number::Bytes::Human qw(format_bytes);
my $gnuplot = "";
......@@ -94,7 +95,7 @@ while ($line = <TRACE>) {
}
# is this a new file record?
if($fields[0] != $current_rank && $fields[1] != $current_hash)
if($fields[0] != $current_rank || $fields[1] != $current_hash)
{
# process previous record
process_file_record($current_rank, $current_hash, \%file_record_hash);
......@@ -451,6 +452,8 @@ foreach $key (keys %hash_files) {
}
}
$avg = $sum / $counter;
$avg = format_bytes($avg);
$max = format_bytes($max);
print TABLES "total opened \& $counter \& $avg \& $max \\\\\n";
print TABLES "
......
This diff is collapsed.
......@@ -56,6 +56,10 @@
{
\input{access-table}
}
\subfigure
{
\input{file-count-table}
}
\end{figure*}
\begin{figure*}[!h]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment