get_process_mem 0.2.1 → 0.2.2

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
- SHA1:
3
- metadata.gz: 1ec90ef55de8687d6be515c6191755d5411ee3ab
4
- data.tar.gz: 610e87016aed28ddd40ec448b7fcd42e754cb1a4
2
+ SHA256:
3
+ metadata.gz: 94fcbfe333ae0cfed19b0152cc0ac30185ade620dfdee8602c650d2af0e2f335
4
+ data.tar.gz: 1ae8b971296e8707f11709c351e914b24dcf78cdcb35a137b43e24ac6f228bce
5
5
  SHA512:
6
- metadata.gz: be1f8d9ddc800b00e67054d2d218e2cc6bbdc9a5972c5491941f481ff8e693d9d423315dad04ef1de9e5ab61a372e02fb5a409fbbcae10a3b4f2b23791849e58
7
- data.tar.gz: c8b6e1fb05a95d651e60f86255e0b9c72089374922e1a434ed047489a800217f7d512f00188542b1b0f59e1c9b190ad97afb05cc8d53429a18a72b120e1481ed
6
+ metadata.gz: 84f9147a2c2ac5de19db50ef12a0d0ce281f0e17c616d7ddcda88bef6660b4e13b6c588d746330d566fffc6d9af657fe3d630ca52307b3a40147dc7ce26e2e77
7
+ data.tar.gz: 2db59b624cd6ed098685b8851eb4776c36c83ec63da54e6da5b885c562311f37ee2792c9de59bad1b7fa138aff7f90a1e2de84db5806c204330149736a8e47c5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
+ ## 0.2.2
2
+
3
+ - Fix support for Ruby 2.4 (#23)
4
+
1
5
  ## 0.2.1
2
6
 
3
- - Windows support.
7
+ - ???
4
8
 
5
9
  ## 0.2.0
6
10
 
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Get Process Memory
2
2
 
3
3
  [![Build Status](https://travis-ci.org/schneems/get_process_mem.png?branch=master)](https://travis-ci.org/schneems/get_process_mem)
4
+ [![Help Contribute to Open Source](https://www.codetriage.com/schneems/get_process_mem/badges/users.svg)](https://www.codetriage.com/schneems/get_process_mem)
4
5
 
5
6
  Do you need to get the memory usage of a process? Great because this library does that.
6
7
 
@@ -90,7 +90,8 @@ class GetProcessMem
90
90
  size = ProcTable.ps(pid).working_set_size
91
91
  BigDecimal.new(size)
92
92
  else
93
- KB_TO_BYTE * BigDecimal.new(`ps -o rss= -p #{pid}`)
93
+ mem = `ps -o rss= -p #{pid}`
94
+ KB_TO_BYTE * BigDecimal.new(mem == "" ? 0 : mem)
94
95
  end
95
96
  end
96
97
  end
@@ -1,3 +1,3 @@
1
1
  class GetProcessMem
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_process_mem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-01 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sys-proctable
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.5.1
96
+ rubygems_version: 2.7.6
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Use GetProcessMem to find out the amount of RAM used by any process