99 "strings"
1010 "time"
1111
12+ "github.com/galbarnahum/h2loadGo/h2load"
1213 "github.com/galbarnahum/remoteSystemStatsMonitor/stats"
1314)
1415
@@ -154,10 +155,15 @@ func RunTool(config *ToolConfig) error {
154155 // Start h2load in background
155156 h2loadBgCh = make (chan * RunnerResult )
156157 go func () {
157- waitForAttackTime := time .Second * 3
158+ waitForAttackTime := time .Second * 7
158159 time .Sleep (waitForAttackTime )
159160 configForH2load .TestDuration = config .TestDuration - waitForAttackTime
160- h2loadStats , err := RunH2load (& configForH2load , nil )
161+ h2loadConf := h2load.H2loadConf {
162+ ConcurrentStreams : 100 ,
163+ Rps : 1 ,
164+ RpsMode : h2load .RpsModeEven ,
165+ }
166+ h2loadStats , err := RunH2load (& configForH2load , & h2loadConf )
161167 if err != nil {
162168 log .Printf ("h2load error: %v" , err )
163169 }
@@ -173,7 +179,7 @@ func RunTool(config *ToolConfig) error {
173179 return fmt .Errorf ("failed to run SSHMonitor: %v" , err )
174180 }
175181 }
176-
182+ config . ShowProgressbar = true
177183 runModeResult , err := RunMode (config )
178184 if err != nil {
179185 return fmt .Errorf ("failed to run %s: %v" , config .Mode , err )
0 commit comments