Skip to content

Commit

Permalink
try with br
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-mm committed Jul 7, 2023
1 parent 3173ee2 commit 1483c2d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/display_results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,19 @@ function display_results {
max_measurement_number=$measurement_number
done

echo "Total Energy [Joules]: $total_energy" >> $output_short
echo "Total Avg. CPU Utilization: $cpu_avg" >> $output_short
echo "Total Avg. Power [Watts]: $power_avg" >> $output_short
echo "Total Duration [seconds]: $time" >> $output_short
echo "----------------" >> $output_short
echo "Total Energy [Joules]: $total_energy<br/>" >> $output_short
echo "Total Avg. CPU Utilization: $cpu_avg<br/>" >> $output_short
echo "Total Avg. Power [Watts]: $power_avg<br/>" >> $output_short
echo "Total Duration [seconds]: $time<br/>" >> $output_short
echo "----------------<br/>" >> $output_short

for (( i=1; i<=$max_measurement_number; i++ )); do
echo "Label $i: $(eval echo \$label_$i)" >> $output_short
echo "Energy Used [Joules]: $(eval echo \$total_energy_$i)" >> $output_short
echo "Avg. CPU Utilization: $(eval echo \$cpu_avg_$i)" >> $output_short
echo "Avg. Power [Watts]: $(eval echo \$power_avg_$i)" >> $output_short
echo "Duration [seconds]: $(eval echo \$time_$i)" >> $output_short
echo "----------------" >> $output_short
echo "Label $i: $(eval echo \$label_$i)<br/>" >> $output_short
echo "Energy Used [Joules]: $(eval echo \$total_energy_$i)<br/>" >> $output_short
echo "Avg. CPU Utilization: $(eval echo \$cpu_avg_$i)<br/>" >> $output_short
echo "Avg. Power [Watts]: $(eval echo \$power_avg_$i)<br/>" >> $output_short
echo "Duration [seconds]: $(eval echo \$time_$i)<br/>" >> $output_short
echo "----------------<br/>" >> $output_short
done

if [[ $source == 'github' ]]; then
Expand Down

0 comments on commit 1483c2d

Please sign in to comment.