rbbt-util 5.17.38 → 5.17.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f235c767bb00159faf5998be14d95a06eca6f83
4
- data.tar.gz: e85bd4d844d2fd418daccddfc04631fcacff5c85
3
+ metadata.gz: 909c55b7a8a3eaa54bc9a2c2a8ef91425f875775
4
+ data.tar.gz: f4d4cf0161593bb45fa5bd83258d8d21cf4c3cd6
5
5
  SHA512:
6
- metadata.gz: e221ea4e84e2647acb9ac8c921aaaceeee158f05e2bf0317bc2aed544f3760cfe025b20faf16cfeafb8d4c51392f60401c6247dba31452e285b89f15d3592320
7
- data.tar.gz: a7b46a23ad312f812884af9403a138db5be48f589817f7da8202a4c3e919b22bb3560db561fe287b8086a87050decd01ab5df28a5d9108eb446953319a66fdda
6
+ metadata.gz: 7ce21e85917ff5ce39743aa74f79ed46731413372feb761d269693067bb8cf65ead49ca0f03b01c2a3553ed09e9993aa2acacb4364c780fc86848116ebc8c51a
7
+ data.tar.gz: e1a3c18db5a4abb7806f121c86caa5c5039900fb6037b658ca9349e9904cfb984fe6485ae0644d3daacfc47c96abf56a57c0a40081e7b24704a87ceaaef94459
@@ -21,6 +21,7 @@ module Log
21
21
  end
22
22
 
23
23
  def percent
24
+ return 0 if @ticks == 0
24
25
  (@ticks * 100) / @max
25
26
  end
26
27
 
@@ -120,7 +120,7 @@ module Log
120
120
  print(io, up_lines(@depth) << report_msg << down_lines(@depth))
121
121
  @last_time = Time.now
122
122
  @last_count = ticks
123
- @last_percent = percent if max
123
+ @last_percent = percent if max and max > 0
124
124
  save if @file
125
125
  end
126
126
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.17.38
4
+ version: 5.17.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez