Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
Merge pull request #38 from solana-labs/skip-rate-precision
Browse files Browse the repository at this point in the history
set skip-rate display precision
  • Loading branch information
pieceofr authored Jul 12, 2023
2 parents 30a2ac6 + ed4eb4d commit cc80431
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dos-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -321,17 +321,20 @@ DATAPOINT[blocks_90_full]="$percent_raw_value"
# skip_rate
result_input="${FLUX_RESULT['mean_skip_rate']}"
get_value
mean_skip_rate_txt="mean_skip_rate: $_value%"
[[ $_value != "na" ]] && printf -v precision "%.2f" "$_value" || precision="na"
mean_skip_rate_txt="mean_skip_rate: $precision%"
DATAPOINT[mean_skip_rate]="$_value"

result_input="${FLUX_RESULT['max_skip_rate']}"
get_value
max_skip_rate_txt="max_skip_rate: $_value%"
[[ $_value != "na" ]] && printf -v precision "%.2f" "$_value" || precision="na"
max_skip_rate_txt="max_skip_rate: $precision%"
DATAPOINT[max_skip_rate]="$_value"

result_input="${FLUX_RESULT['skip_rate_90']}"
get_value
skip_rate_90_txt="skip_rate_90: $_value%"
[[ $_value != "na" ]] && printf -v precision "%.2f" "$_value" || precision="na"
skip_rate_90_txt="skip_rate_90_txt: $precision%"
DATAPOINT[skip_rate_90]="$_value"

#write data report to the influx
Expand Down

0 comments on commit cc80431

Please sign in to comment.