lib/vnstat/result.rb in vnstat-ruby-2.0.0 vs lib/vnstat/result.rb in vnstat-ruby-3.0.0
- old
+ new
@@ -50,9 +50,10 @@
##
# @return [Integer, nil]
def <=>(other)
return nil unless other.respond_to?(:bytes_transmitted)
+
bytes_transmitted <=> other.bytes_transmitted
end
end
end