lib/vnstat/interface.rb in vnstat-ruby-1.0.4 vs lib/vnstat/interface.rb in vnstat-ruby-1.0.5
- old
+ new
@@ -59,11 +59,11 @@
# will get some extra traffic to its database. Not needed when the daemon is
# used.
#
# @return [Interface]
def reset
- Utils.call_executable_returning_status('--reset', '-i', id)
- reload
+ reload if Utils.call_executable_returning_status('--reset', '-i', id)
+ self
end
##
# Returns the alias name for the interface.
#