darshan-ruby 3.1.4.2 → 3.1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/quarshan +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2b6a27c39e4a6ce9199f0db55937dce8b8f50f1
|
4
|
+
data.tar.gz: b49a347b558ff92d59fc29cbf712dbacdc2ea3eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb055bc01bca9f6a18af3563b504e357d94ea3bd960e697530bbfa65222c731326c3a2fbd21487e6713548848fa6b10cc76b12ccc67198a5d3ab45d2ab34934
|
7
|
+
data.tar.gz: de12ca8f21ec006fb8b0f4a5372be214a5d997c6728663c20b67d71b5af42b04fb0017cb44e5626f4dffa16bc4ef3d897cb930f4a1ba0541603e76b9751bca6b
|
data/bin/quarshan
CHANGED
@@ -208,22 +208,25 @@ class Query
|
|
208
208
|
def read_file(filename)
|
209
209
|
current_line = @results[0].size
|
210
210
|
Darshan::LogFile.open(filename) do |file|
|
211
|
-
|
211
|
+
has_header_info = false
|
212
|
+
name_matched = false
|
212
213
|
modules_present = []
|
213
214
|
file.each_module do | m |
|
214
215
|
modules_present << m.name
|
215
|
-
if @counters.size
|
216
|
-
|
216
|
+
if @counters.size && @prefix == ""
|
217
|
+
has_header_info = true
|
217
218
|
end
|
218
219
|
next if @mod != $darshan_mods[m.name]
|
219
220
|
m.each_record do | r |
|
220
221
|
if r.name.start_with?(@prefix)
|
221
222
|
b = process_record(r)
|
222
|
-
|
223
|
+
has_header_info = b || has_header_info
|
224
|
+
name_matched = true
|
223
225
|
end
|
224
226
|
end
|
225
227
|
end
|
226
|
-
|
228
|
+
has_header_info = has_header_info || name_matched
|
229
|
+
if has_header_info && @info
|
227
230
|
idx = 0
|
228
231
|
if @counters.size == 0
|
229
232
|
idx = @results[-1].size
|