mirror of
https://github.com/elastic/logstash.git
synced 2025-04-23 22:27:21 -04:00
parent
9af51505b6
commit
d2bf28bd40
1 changed files with 1 additions and 5 deletions
|
@ -91,11 +91,7 @@ module LogStash
|
|||
alias_method :to_s, :to_iso8601
|
||||
|
||||
def -(value)
|
||||
if value.is_a?(Timestamp)
|
||||
@time - value.time
|
||||
else
|
||||
@time - value
|
||||
end
|
||||
@time - (value.is_a?(Timestamp) ? value.time : value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue