lib/vnstat/interface_collection.rb in vnstat-ruby-2.0.0 vs lib/vnstat/interface_collection.rb in vnstat-ruby-3.0.0

- old
+ new

@@ -69,9 +69,10 @@ # @return [Interface, nil] The interface that has justed been added to # tracking. def create(id) success = Utils.call_executable_returning_status('--create', '-i', id) return nil unless success + reload self[id] end ##