Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken duration for backup log message.

  • Loading branch information...
commit f99190ac5350d350ad3a348e326e7a0ad769e25a 1 parent ad40720
@tiredpixel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/frakup/backupset.rb
View
2  lib/frakup/backupset.rb
@@ -36,7 +36,7 @@ def self.backup(source, target)
backupset.save
$log.info " Backup finished"
- $log.info " - duration: #{Time.at(backupset.finished_at - backupset.started_at).gmtime.strftime('%R:%S')}"
+ $log.info " - duration: #{Time.at(backupset.finished_at.to_time - backupset.started_at.to_time).gmtime.strftime('%R:%S')}"
$log.info " - backupelements: #{backupset.backupelements.count}"
$log.info " - fileobjects: #{backupset.fileobjects.count}"
$log.info " - size: #{Frakup::Helper.human_size(backupset.fileobjects.sum(:size))}"
Please sign in to comment.
Something went wrong with that request. Please try again.