<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

</head>
<body>
<style type="text/css">
img {
max-width: 100%; height: auto;
}
</style>
<div class="content">
<h3>
Shane Snyder pushed to branch master
at <a href="https://xgitlab.cels.anl.gov/darshan/darshan">darshan / darshan</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/a6e8682980f49039d4f15194840139857291f216">a6e86829</a></strong>
<div>
<span>by Shane Snyder</span>
<i>at 2016-06-07T11:09:52-05:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap">bug fixes in summary per file tool</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#620f2ecad2bb6f74b2fcd0134963a841" style="text-decoration: none">
darshan-util/darshan-summary-per-file.sh
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="620f2ecad2bb6f74b2fcd0134963a841">
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/a6e8682980f49039d4f15194840139857291f216#diff-0">
<strong>
darshan-util/darshan-summary-per-file.sh
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="background: #ffdddd; color: #000000">--- a/darshan-util/darshan-summary-per-file.sh
</span><span style="background: #ddffdd; color: #000000">+++ b/darshan-util/darshan-summary-per-file.sh
</span><span style="color: #aaaaaa">@@ -9,12 +9,12 @@
</span> set -o pipefail
 
 if [ $# -ne 2 ]; then
<span style="background: #ffdddd; color: #000000">-    echo "Usage: darshan-summary-per-file.sh <input_file.gz> <output_directory>"
</span><span style="background: #ddffdd; color: #000000">+    echo "Usage: darshan-summary-per-file.sh <input_file.darshan> <output_directory>"
</span>     exit 1
 fi
 
 # count number of files present in log
<span style="background: #ffdddd; color: #000000">-filecount=`darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | uniq | wc -l`
</span><span style="background: #ddffdd; color: #000000">+filecount=`darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | sort -n | uniq | wc -l`
</span> rc=$?
 if [ $rc -ne 0 ]; then
    exit $rc
<span style="color: #aaaaaa">@@ -29,21 +29,21 @@ fi
</span> 
 # loop through all files in log
 counter=0
<span style="background: #ffdddd; color: #000000">-darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | uniq |
-while read -r hash suffix stuff ; do
</span><span style="background: #ddffdd; color: #000000">+darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | sort -n | uniq |
+while read -r hash filepath stuff ; do
</span>         counter=$((counter+1))
<span style="background: #ffdddd; color: #000000">-     file=$(basename $suffix)
-       if [ -x $file.gz ] ; then
-               $file = $file.$hash.gz
</span><span style="background: #ddffdd; color: #000000">+        file=$(basename $filepath)
+       if [ -x $file.darshan ] ; then
+               $file = $file.$hash.darshan
</span>   fi
         echo Status: Generating summary for file $counter of $filecount: $file
         echo =======================================================
<span style="background: #ffdddd; color: #000000">-     darshan-convert --file $hash $1 $2/$file.gz
</span><span style="background: #ddffdd; color: #000000">+        darshan-convert --file $hash $1 $2/$file.darshan
</span>         rc=$?
         if [ $rc -ne 0 ]; then
            exit $rc
         fi
<span style="background: #ffdddd; color: #000000">-     darshan-job-summary.pl $2/$file.gz --output $2/$file.pdf
</span><span style="background: #ddffdd; color: #000000">+        darshan-job-summary.pl $2/$file.darshan --output $2/$file.pdf
</span>         rc=$?
         if [ $rc -ne 0 ]; then
            exit $rc
</code></pre>

<br>
</li>

</div>
<div class="footer" style="margin-top: 10px">
<p style="color: #777; font-size: small">

<br>
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/a6e8682980f49039d4f15194840139857291f216">View it on GitLab</a>.
<br>
You're receiving this email because of your account on xgitlab.cels.anl.gov.
If you'd like to receive fewer emails, you can
adjust your notification settings.

</p>
</div>
</body>
</html>