@@ -171,39 +171,39 @@ def to_json(self):
171171 # put host-set at top because it can be very long
172172 # and we want rest of parameters to be grouped together
173173
174- p ['host-set ' ] = self .host_set
175- p ['launch-by-daemon ' ] = self .launch_by_daemon
174+ p ['host_set ' ] = self .host_set
175+ p ['launch_by_daemon ' ] = self .launch_by_daemon
176176 p ['version' ] = self .version
177177 p ['top' ] = ',' .join (self .top_dirs )
178178 p ['operation' ] = inv .opname
179- p ['files-per-thread ' ] = inv .iterations
179+ p ['files_per_thread ' ] = inv .iterations
180180 p ['threads' ] = self .thread_count
181- p ['file-size ' ] = inv .total_sz_kb
182- p ['file-size-distr ' ] = self .size_distribution
183- p ['files-per-dir ' ] = inv .files_per_dir
184- p ['share-dir ' ] = bool2YN (inv .is_shared_dir )
185- p ['fname-prefix ' ] = inv .prefix
186- p ['fname-suffix ' ] = inv .suffix
187- p ['hash-to-dir ' ] = bool2YN (inv .hash_to_dir )
188- p ['fsync-after-modify ' ] = bool2YN (inv .fsync )
189- p ['pause-between-files ' ] = str (inv .pause_between_files )
190- p ['auto-pause ' ] = str (inv .auto_pause )
191- p ['cleanup-delay-usec-per-file ' ] = str (inv .cleanup_delay_usec_per_file )
192- p ['finish-all-requests ' ] = bool2YN (inv .finish_all_rq )
181+ p ['file_size ' ] = inv .total_sz_kb
182+ p ['file_size_distr ' ] = self .size_distribution
183+ p ['files_per_dir ' ] = inv .files_per_dir
184+ p ['share_dir ' ] = bool2YN (inv .is_shared_dir )
185+ p ['fname_prefix ' ] = inv .prefix
186+ p ['fname_suffix ' ] = inv .suffix
187+ p ['hash_to_dir ' ] = bool2YN (inv .hash_to_dir )
188+ p ['fsync_after_modify ' ] = bool2YN (inv .fsync )
189+ p ['pause_between_files ' ] = str (inv .pause_between_files )
190+ p ['auto_pause ' ] = str (inv .auto_pause )
191+ p ['cleanup_delay_usec_per_file ' ] = str (inv .cleanup_delay_usec_per_file )
192+ p ['finish_all_requests ' ] = bool2YN (inv .finish_all_rq )
193193 p ['stonewall' ] = bool2YN (inv .stonewall )
194- p ['verify-read ' ] = bool2YN (inv .verify_read )
195- p ['xattr-size ' ] = str (inv .xattr_size )
196- p ['xattr-count ' ] = str (inv .xattr_count )
197- p ['permute-host-dirs ' ] = bool2YN (self .permute_host_dirs )
198- p ['network-sync-dir ' ] = self .network_sync_dir
199- p ['min-directories-per-sec ' ] = self .min_directories_per_sec
200- p ['total-hosts ' ] = inv .total_hosts
194+ p ['verify_read ' ] = bool2YN (inv .verify_read )
195+ p ['xattr_size ' ] = str (inv .xattr_size )
196+ p ['xattr_count ' ] = str (inv .xattr_count )
197+ p ['permute_host_dirs ' ] = bool2YN (self .permute_host_dirs )
198+ p ['network_sync_dir ' ] = self .network_sync_dir
199+ p ['min_directories_per_sec ' ] = self .min_directories_per_sec
200+ p ['total_hosts ' ] = inv .total_hosts
201201
202202 # include startup-timeout and host-timeout to make possible
203203 # diagnosis of timeout problems, but we don't normally need them
204204 # so don't include in human-readable output
205205
206- p ['startup-timeout ' ] = self .startup_timeout
207- p ['host-timeout ' ] = self .host_startup_timeout
206+ p ['startup_timeout ' ] = self .startup_timeout
207+ p ['host_timeout ' ] = self .host_startup_timeout
208208
209209 return json_dictionary
0 commit comments