@@ -113,7 +113,7 @@ func runLoadTest(ctx context.Context, cmd *cobra.Command, args []string) error {
113113 log .Printf ("👥 Workers per endpoint: %d" , settings .Workers )
114114 log .Printf ("🔧 Total workers: %d" , len (cfg .Endpoints )* settings .Workers )
115115 log .Printf ("📊 Scenarios: %d" , len (cfg .Scenarios ))
116- log .Printf ("⏱️ Stats interval: %v" , settings .StatsInterval )
116+ log .Printf ("⏱️ Stats interval: %v" , settings .StatsInterval . ToDuration () )
117117 log .Printf ("📦 Buffer size per worker: %d" , settings .BufferSize )
118118 if settings .TPS > 0 {
119119 log .Printf ("📈 Transactions per second: %.2f" , settings .TPS )
@@ -148,7 +148,7 @@ func runLoadTest(ctx context.Context, cmd *cobra.Command, args []string) error {
148148
149149 // Create statistics collector and logger
150150 collector := stats .NewCollector ()
151- logger := stats .NewLogger (collector , settings .StatsInterval , settings .Debug )
151+ logger := stats .NewLogger (collector , settings .StatsInterval . ToDuration () , settings .Debug )
152152 var ramper * sender.Ramper
153153
154154 err = service .Run (ctx , func (ctx context.Context , s service.Scope ) error {
@@ -200,7 +200,7 @@ func runLoadTest(ctx context.Context, cmd *cobra.Command, args []string) error {
200200
201201 // Create and start user latency tracker if endpoints are available
202202 if len (cfg .Endpoints ) > 0 && settings .TrackUserLatency {
203- userLatencyTracker := stats .NewUserLatencyTracker (settings .StatsInterval )
203+ userLatencyTracker := stats .NewUserLatencyTracker (settings .StatsInterval . ToDuration () )
204204 s .SpawnBgNamed ("user latency tracker" , func () error {
205205 return userLatencyTracker .Run (ctx , cfg .Endpoints [0 ])
206206 })
@@ -261,7 +261,7 @@ func runLoadTest(ctx context.Context, cmd *cobra.Command, args []string) error {
261261 sigChan := make (chan os.Signal , 1 )
262262 signal .Notify (sigChan , syscall .SIGINT , syscall .SIGTERM )
263263
264- log .Printf ("📈 Logging statistics every %v (Press Ctrl+C to stop)" , settings .StatsInterval )
264+ log .Printf ("📈 Logging statistics every %v (Press Ctrl+C to stop)" , settings .StatsInterval . ToDuration () )
265265 if settings .DryRun {
266266 log .Printf ("📝 Dry-run mode: Simulating requests without sending" )
267267 }
0 commit comments