lib/zold/commands/push.rb in zold-0.13.17 vs lib/zold/commands/push.rb in zold-0.13.18
- old
+ new
@@ -81,10 +81,10 @@
end
start = Time.now
content = AtomicFile.new(wallet.path).read
response = r.http("/wallet/#{wallet.id}#{opts['sync'] ? '?sync=true' : ''}").put(content)
if response.code == '304'
- @log.info("#{r}: same version of #{wallet.id} there")
+ @log.info("#{r}: same version of #{wallet.id} there, in #{(Time.now - start).round(2)}s")
return 0
end
r.assert_code(200, response)
json = JSON.parse(response.body)
score = Score.parse_json(json['score'])