mulbc / gosbench

Distributed S3 benchmarking tool - Replacement of Cosbench
GNU General Public License v3.0
44 stars 16 forks source link

fix: integer divide by zero #24

Closed microyahoo closed 1 year ago

microyahoo commented 1 year ago

Signed-off-by: Liang Zheng zhengliang0901@gmail.com

DEBU[2023-05-31T16:34:24+08:00] Found 0 objects in bucket gosbench-prefix-2                                                                                                                        
panic: runtime error: integer divide by zero                                                                                                                                                       

goroutine 1 [running]:                                                                                                                                                                             
main.fillWorkqueue(0xc00011a5a0, 0xc00053fbf0, {0xc00012c804, 0x2}, 0x1)                                                                                                                           
        /root/go/src/deeproute.ai/gosbench/worker/main.go:297 +0x1a05                                                                                                                              
main.connectToServer({0x7ffdb23191cc?, 0xc000024080?})                                                                                                                                             
        /root/go/src/deeproute.ai/gosbench/worker/main.go:89 +0x385                                                                                                                                
main.main()                                                                                                                                                                                        
        /root/go/src/deeproute.ai/gosbench/worker/main.go:52 +0x233