lib/pmux-gw/history.rb in pmux-gw-0.1.3 vs lib/pmux-gw/history.rb in pmux-gw-0.1.4

- old
+ new

@@ -51,10 +51,10 @@ @logger.logging("error", "error: #{e}") end end new_last_rotate = Date.today() if new_last_rotate.day != @last_rotate.day || @reset - @file_path = build_file_path(@last_rotate) + @file_path = build_file_path(@new_last_rotate) if !@fp.nil? @fp.close() @fp = nil else @logger.logging("error", "can not close file, file object is nil")