trisulrp 3.1.14 → 3.1.16
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 +4 -4
- data/VERSION +1 -1
- data/lib/trisulrp/protocol.rb +4 -7
- data/lib/trisulrp/trp.pb.rb +1 -0
- data/lib/trisulrp/trp.proto +1 -0
- data/trisulrp.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb04389fb4e2377b99279a36b656db635f58a560
|
4
|
+
data.tar.gz: e7e57b4d8d7e38b301ee722d2c074269a3b95aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 532cbb05586f8ea2cd849c45784f8b3f08a46bbe5049af8fb34da3c5552daf3ef33f08591dbf1f8eb8a062422e2a7f3c584fd0079596ef32fd3375a0b4d49bc9
|
7
|
+
data.tar.gz: 80587cbe0bb22c2c5be0140c9591d2550a57ed3294fd6933de0a4de4b1a0f798e5558cc4fd7ab7f44d43b7804d4dc62456ad8a0cba61da8e1ef500a1edbfbb25
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.16
|
data/lib/trisulrp/protocol.rb
CHANGED
@@ -248,14 +248,11 @@ module TrisulRP::Protocol
|
|
248
248
|
resp=get_response_zmq(endpoint, trp_request, timeout_seconds)
|
249
249
|
|
250
250
|
trp_resp_command_id = resp.instance_variable_get("@trp_resp_command_id")
|
251
|
-
|
251
|
+
sleep_time = [1,1,1,1,1,1,1,2,2,2,2,2]
|
252
|
+
count = 0
|
252
253
|
while trp_resp_command_id == TRP::Message::Command::ASYNC_RESPONSE do
|
253
|
-
@sleep =
|
254
|
-
|
255
|
-
@sleep = 5
|
256
|
-
else
|
257
|
-
@sleep = @sleep *2
|
258
|
-
end
|
254
|
+
@sleep = sleep_time[count] || 5
|
255
|
+
count = count +1
|
259
256
|
async_req = TrisulRP::Protocol.mk_request(
|
260
257
|
TRP::Message::Command::ASYNC_REQUEST,
|
261
258
|
{
|
data/lib/trisulrp/trp.pb.rb
CHANGED
data/lib/trisulrp/trp.proto
CHANGED
@@ -68,6 +68,7 @@ message MeterInfo {
|
|
68
68
|
VT_AUTO=7; /// automatic (eg, min/max/avg/stddev/)
|
69
69
|
VT_RUNNING_COUNTER=8; /// running counter, no delta calc
|
70
70
|
VT_AVERAGE=9; /// average of samples, total/sampl uses 32bt|32bit
|
71
|
+
VT_DELTA_RATE_COUNTER=10; /// link snmp running counter
|
71
72
|
}
|
72
73
|
|
73
74
|
|
data/trisulrp.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: trisulrp 3.1.
|
5
|
+
# stub: trisulrp 3.1.16 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trisulrp"
|
9
|
-
s.version = "3.1.
|
9
|
+
s.version = "3.1.16"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["vivek"]
|
14
|
-
s.date = "2017-
|
14
|
+
s.date = "2017-07-12"
|
15
15
|
s.description = "This gem deals about the trisul remote protocol"
|
16
16
|
s.email = "vivek_rajagopal@yahoo.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trisulrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf
|