Skip to content

Commit fa652ad

Browse files
committedOct 8, 2024·
Handle nil
1 parent 9fde8bb commit fa652ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎script/passenger_worker_cleaner.rb

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def initialize(pid:, sessions:, processed:, uptime_str:, cpu:, memory_str:, last
2424

2525
# Parses a time string like "16m 52s" into total seconds
2626
def parse_time(time_str)
27+
return 0 unless time_str
2728
total_seconds = 0
2829
# Match patterns like "16m", "52s", etc.
2930
time_str.scan(/(\d+)m|(\d+)s/) do |min, sec|

0 commit comments

Comments
 (0)
Please sign in to comment.