Commit cc2cc4c1 authored by Philip Carns's avatar Philip Carns

added warning to indicate when I/O timespan intervals are out of range, see

#129


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@830 3b7491f3-a168-0410-bf4b-c445ed680a29
parent fb62e4a3
...@@ -240,6 +240,10 @@ while ($line = <TRACE>) { ...@@ -240,6 +240,10 @@ while ($line = <TRACE>) {
if($last_read_start > $starttime) { if($last_read_start > $starttime) {
$last_read_start -= $starttime; $last_read_start -= $starttime;
} }
if($fields[3] > $runtime)
{
print "Warning: detected read access at time $fields[3] but runtime is only $runtime seconds.\n";
}
if($fields[0] == -1){ if($fields[0] == -1){
print FA_READ_SH "$last_read_start\t0\t$xdelta\t0\n"; print FA_READ_SH "$last_read_start\t0\t$xdelta\t0\n";
} }
...@@ -258,6 +262,10 @@ while ($line = <TRACE>) { ...@@ -258,6 +262,10 @@ while ($line = <TRACE>) {
if($last_write_start > $starttime) { if($last_write_start > $starttime) {
$last_write_start -= $starttime; $last_write_start -= $starttime;
} }
if($fields[3] > $runtime)
{
print "Warning: detected write access at time $fields[3] but runtime is only $runtime seconds.\n";
}
if($fields[0] == -1){ if($fields[0] == -1){
print FA_WRITE_SH "$last_write_start\t0\t$xdelta\t0\n"; print FA_WRITE_SH "$last_write_start\t0\t$xdelta\t0\n";
} }
......
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