diff --git a/bin/verilator_gantt b/bin/verilator_gantt index 252b98c9a..574d01567 100755 --- a/bin/verilator_gantt +++ b/bin/verilator_gantt @@ -123,13 +123,13 @@ sub report { } my $nthreads = scalar keys %Threads; - $Global{cpus}{cpu_time} = {}; + $Global{cpus} = {}; foreach my $thread (keys %Threads) { # Make potentially multiple characters per column foreach my $start (keys %{$Threads{$thread}}) { my $cpu = $Threads{$thread}{$start}{cpu}; my $elapsed = $Threads{$thread}{$start}{end} - $start; - $Global{cpus}{cpu_time}{$cpu} += $elapsed; + $Global{cpus}{$cpu}{cpu_time} += $elapsed; } }