Skip to content

Instantly share code, notes, and snippets.

@Artem-B
Created February 4, 2023 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Artem-B/67c8f9f58917f0b629c355578e6647f7 to your computer and use it in GitHub Desktop.
Save Artem-B/67c8f9f58917f0b629c355578e6647f7 to your computer and use it in GitHub Desktop.
glxinfo crash stats collection script.
#! /usr/bin/bash
GOOD=0
BAD=0
N=100
for ((i=0; i<N; i++)); do
glxinfo -B > /dev/null 2>/dev/null |:
if [[ ${PIPESTATUS[0]} = 0 ]]; then
((GOOD++))
else
((BAD++))
fi
done
echo GOOD=$GOOD BAD=$BAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment