grid 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/grid.gemspec +1 -1
- data/lib/grid.rb +12 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/grid.gemspec
CHANGED
data/lib/grid.rb
CHANGED
@@ -40,6 +40,18 @@ class Grid
|
|
40
40
|
grid.release_tuples
|
41
41
|
end
|
42
42
|
|
43
|
+
private
|
44
|
+
|
45
|
+
##
|
46
|
+
# Calculate rampup in seconds
|
47
|
+
def self.rampup(total_threads, params = {})
|
48
|
+
if params[:rampup]
|
49
|
+
params[:rampup] / total_threads
|
50
|
+
else
|
51
|
+
0.5
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
43
55
|
class Helper
|
44
56
|
def initialize(params = {})
|
45
57
|
@grid_id = params[:grid_id]
|
metadata
CHANGED