lib/zold/commands/push.rb in zold-0.13.41 vs lib/zold/commands/push.rb in zold-0.13.42
- old
+ new
@@ -86,10 +86,11 @@
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, in #{(Time.now - start).round(2)}s")
+ @log.info("#{r}: same version #{content.length}b/#{wallet.txns.count}t \
+of #{wallet.id} there, in #{(Time.now - start).round(2)}s")
return 0
end
r.assert_code(200, response)
json = JsonPage.new(response.body).to_hash
score = Score.parse_json(json['score'])