summaryrefslogtreecommitdiffstats
path: root/src/hwlatdetect/hwlatdetect.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/hwlatdetect/hwlatdetect.py')
-rwxr-xr-xsrc/hwlatdetect/hwlatdetect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index 66e66a2..ca47c1c 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -519,11 +519,13 @@ if __name__ == '__main__':
info("Samples exceeding threshold: %d" % exceeding)
if reportfile:
+ count = 0
f = open(reportfile, "w")
for s in detect.samples:
+ count += 1
f.write("%s\n" % s)
f.close()
- info("sample data written to %s" % reportfile)
+ info("sample data (%d samples) written to %s" % (count, reportfile))
else:
for s in detect.samples:
print "%s" % s