rbbt-util 5.37.3 → 5.37.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07fa1d0cd31a7eb51d942fdd50e97b1a9740d7412a945e9669fb9261d6bb482c
4
- data.tar.gz: 3a3ab79e1b42919711c57f9d4c264b910f1f96ecac250062186e525ae5482c2b
3
+ metadata.gz: 1c6028b83625f2d53fd5fc9d88643352578971dfc6e0e533935e281dc031ffdc
4
+ data.tar.gz: 822a588deb012ab9895ca7d3eb1afecaa2281a987ef88142015c591193c9d7b2
5
5
  SHA512:
6
- metadata.gz: 4969b37961d809840e7d047cb6e05d90e6dda0561784afe864e1ab7a10da93e827a1fc6be292960ce8463986ed44fcdf87a95cd0009df498f62cce12e90a4b89
7
- data.tar.gz: eaf19c896b1317bcf5ca3aa479f6af1a404ba7fb2f17896afd1ea74f3f3410bbf5f3c2608f91c27524748c55911c6e68edf776ebc14abe36ac184a2814314433
6
+ metadata.gz: ede0f59cea00b5cecdd08c0f6d60dd3001a4a480f7857ca0bfd7e9385358ff83e1094a77b3b2d7bf336af0132ece5fd196cba6e9993baa80cb1f7b977ca048d7
7
+ data.tar.gz: 949cdedc1e3876d34d91e2dad34426211e61190159582b1cd3675ee142bda1679e6d2abe77dfbf8e5fe65477216402582b668a97f729a9d1091f901b3d20415a
@@ -399,7 +399,7 @@ def self.add_libdir(dir=nil)
399
399
  def self.memory_use(pid=nil)
400
400
  pid ||= $$
401
401
  begin
402
- CMD.cmd("grep 'VmRSS:' /proc/#{pid}/status").read.scan(/\d+/).first.to_i
402
+ Open.read("/proc/#{pid}/status").match(/VmRSS:\s+(\d+)/)[1].to_i
403
403
  rescue ProcessFailed
404
404
  raise "Process with #{pid} not found"
405
405
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.37.3
4
+ version: 5.37.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-07 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake