esto 0.7.0 → 0.7.1

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: 9300ca3a75b7ae9aceae68809e583f8b628bf844
4
- data.tar.gz: de7db3190a7634b42ce0f99f5c2658bd589e380b
3
+ metadata.gz: 2747e52afc94bc069eb6a1df1ada671a96b2edcb
4
+ data.tar.gz: a3b758397cda60fbae7110c3da25436adccf5a51
5
5
  SHA512:
6
- metadata.gz: b9f297046ee0d85fb8ef6b720e8bd697d025d94cb03b63de5fa20435934cfa709716257ae3d4e308d0a1d03b88caf99a2ecfbb2681c9283fdc9c3725ec59c351
7
- data.tar.gz: 398a6be7ad65e6dece999104c7513f9c54e5dcef5c09958daed45f62e99c19fc6f7e0a60475b5d6451486ae7bda699a83192b7e8184ecefff854431d70205d99
6
+ metadata.gz: 9bedbc1da8207e4141a7b7c2196012e646b6425d7b8b5a000a32421bc2fe2750c2637d1efc33b76b6b1d751e188fe37c52cc5047605b1630f11c297f25840a3f
7
+ data.tar.gz: eb79628bf7b79690dcdae09af3c9532b2720cb6676c22d783224fcbfbcd54e6ee76e84c5b9adac03d5113b3c7b7625b04a665207a7d2f344124e02a142215b36
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "esto"
5
- gem.version = "0.7.0"
5
+ gem.version = "0.7.1"
6
6
  gem.platform = Gem::Platform::RUBY
7
7
  gem.summary = "Monitor processes; uptime, threads and memory, and actor system states."
8
8
  gem.description = "Process statistics, and utility for finding problems in Celluloid systems."
@@ -10,7 +10,7 @@ class Abstractive::Esto < Abstractive::Actor
10
10
 
11
11
  class << self
12
12
  def start!(options={})
13
- name = options.delete(:name) || :proceso
13
+ name = options.delete(:name) || :esto
14
14
  Abstractive::Esto.supervise(as: name, args: [options])
15
15
  Celluloid[name]
16
16
  end
@@ -106,9 +106,9 @@ class Abstractive::Esto < Abstractive::Actor
106
106
 
107
107
  def memory
108
108
  total = `pmap #{Process.pid} | tail -1`[10,40].strip[0..-1].to_i
109
- gb = (total / (1024 * 1024)).to_i
110
- mb = total % gb
111
- "Memory: #{'%0.2f' % "#{gb}.#{mb}"}gb" #de Very fuzzy math but fine for now.
109
+ gb = (total / (1024 * 1024)).floor
110
+ mb = total / 1024
111
+ "Memory: #{'%0.3f' % "#{gb}.#{mb}"}gb" #de Very fuzzy math but fine for now.
112
112
  end
113
113
 
114
114
  def trigger!(monitor)
@@ -121,7 +121,7 @@ class Abstractive::Esto < Abstractive::Actor
121
121
  @timers[monitor] = after(@intervals[monitor]) { send("#{monitor}!") }
122
122
  result
123
123
  rescue => ex
124
- exception(ex, "Abstractive::Esto > Failure to trigger: #{monitor}")
124
+ exception(ex, "Abstractive::Esto > Failure to trigger: #{monitor}") if @debug
125
125
  end
126
126
 
127
127
  [:debug,:console].each { |m|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - digitalextremist //