lib/vnstat/result/day.rb in vnstat-ruby-2.0.0 vs lib/vnstat/result/day.rb in vnstat-ruby-3.0.0

- old
+ new

@@ -39,9 +39,10 @@ ## # @return [Integer, nil] def <=>(other) return nil unless other.respond_to?(:bytes_transmitted) return nil unless other.respond_to?(:date) + [date, bytes_transmitted] <=> [other.date, other.bytes_transmitted] end end end end