Skip to content

Commit

Permalink
CP-50121: Remove bc package from XS9 dom0
Browse files Browse the repository at this point in the history
To ensure consistency and simplicity for both XS9 and XS8, this
change replaces bc command use to python.

Signed-off-by: Deli Zhang <[email protected]>
  • Loading branch information
DeliZhangX committed Jul 30, 2024
1 parent afe5fec commit 670cb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/xe-xentrace
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ if [ -n "${DUMP_ON_CPUAVG}" ]; then
| (TRIGGER=0
read -r _IGNORE
while IFS=, read -r _time value; do
if (( $(echo "${value} > ${DUMP_ON_CPUAVG}/100" | bc -l) )); then
if (( $(python3 -c "print(1 if ${value} > ${DUMP_ON_CPUAVG}/100.0 else 0)") )); then
TRIGGER=$((TRIGGER + 1))
else
TRIGGER=0
Expand Down

0 comments on commit 670cb99

Please sign in to comment.