mmtop 1.0.1 → 1.0.2

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: 5cfcb1f07b47fecbf593191304bff9f7cd599e8a
4
- data.tar.gz: ddc820840fd231e0624da718b2b29b463f57bb3f
3
+ metadata.gz: 7202089cd59af312556434bc4f7f769706210f2b
4
+ data.tar.gz: 096c4a0138bf7a1dbcb8b6c046d8b02d2aa0dc8e
5
5
  SHA512:
6
- metadata.gz: 7b8cc1b894133ff4247442b21bdf076f1e9f814866c665054c0800847f585125643667f683e853c65b4b6f7eea7d76f5499ff07af6b9160629118e40b98a783c
7
- data.tar.gz: 832ab1e621328f561c68cdf2239a13583d91c800187afb6c5b9fccc69709c79b0f850aa5c97ad801803d3bc22db584b96423eae1f651acacda1222731969be6d
6
+ metadata.gz: 445308ce09fca660c9d394cbc735f9864b384a435c95364848d3981b8ea027aa9746b3e0bcf5092e8652085c41e66f3dca317e8ebe65bfdbee71b850a303f012
7
+ data.tar.gz: 196a5b6afe5ae7081812fe09e21eed141760b89b95ca5b5f7369f7b2e0b7ebaa05dfce3272da3248d52c4d40f984129a33b7a61fddbc8aea51c339245873b77e
@@ -8,7 +8,7 @@ module MMTop
8
8
 
9
9
  return @@lookups[client] if @@lookups[client]
10
10
 
11
- hostline = %x{dig -x #{client} +short}.chomp
11
+ hostline = %x{dig -x #{client} +short}.split("\n").first.to_s
12
12
  hostline.gsub!(/([^\.]+)\..*/, '\1')
13
13
  @@lookups[client] = hostline
14
14
  @@lookups[client]
@@ -152,7 +152,6 @@ module MMTop
152
152
 
153
153
  str = pipe + " " + column_value([0, 1, 2], display_name + " ", "-".dark_gray)
154
154
 
155
- #str += sep_fill + column_fill(1) + sep_fill + column_fill(2)
156
155
  str += info_sep + column_value(3, info.connections.size.to_s)
157
156
  str += info_sep + column_value(4, format_slave_status(info.slave_status))
158
157
  str += info_sep + column_value(5, format_slave_delay(info.slave_status))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmtop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff