Skip to content

Commit

Permalink
Fix path for status-files. Found via watir tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 28, 2024
1 parent 048536e commit 55882fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util/oddbapp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1945,8 +1945,7 @@ def log_size
gc << 'S' if nr_sessions < lastsessions
gc << 'T' if threads < lastthreads
gc << 'M' if bytes < lastbytes
path = File.join(ODDB::RESOURCES_DIR, 'downloads/' + status,
File.dirname(__FILE__))
path = File.join(ODDB::RESOURCES_DIR, 'downloads/' + status)
lines = File.readlines(path)[0,100] rescue []
lines.unshift sprintf(format, alarm,
time.strftime('%Y-%m-%d %H:%M:%S'),
Expand Down

0 comments on commit 55882fd

Please sign in to comment.