Skip to content

Commit

Permalink
Fix issues from PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Hanson committed Nov 15, 2024
1 parent 3ef6bfd commit 5698e84
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/dtrace/get-ds-state.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Print a status line for a given PID.
* Print a status line for all matching probes.
* Exit after 5 seconds.
*/
#pragma D option quiet
Expand Down
2 changes: 1 addition & 1 deletion tools/dtrace/get-ds-state.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ filename='/tmp/get-ds-state.out'
# Gather state on all running propolis servers, record summary to a file
dtrace -s /opt/oxide/crucible_dtrace/get-ds-state.d | sort -n | uniq | awk 'NF' > "$filename"
# Walk the lines in the file, append the zone name to each line.
while read p; do
while read -r p; do
# For each line in the file, pull out the PID we are looking at and
# print the zone that process is running in.
pid=$(echo $p | awk '{print $1}')
Expand Down
2 changes: 1 addition & 1 deletion tools/dtrace/get-lr-state.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Print a live reapir status line.
* Print a live repair status line for all matching probes.
* Exit after 5 seconds.
*/
#pragma D option quiet
Expand Down
2 changes: 1 addition & 1 deletion tools/dtrace/get-lr-state.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ filename='/tmp/get-lr-state.out'
# Gather state on all running propolis servers, record summary to a file
dtrace -s /opt/oxide/crucible_dtrace/get-lr-state.d | sort -n | uniq | awk 'NF' > "$filename"
# Walk the lines in the file, append the zone name to each line.
while read p; do
while read -r p; do
# For each line in the file, pull out the PID we are looking at and
# print the zone that process is running in.
pid=$(echo $p | awk '{print $1}')
Expand Down

0 comments on commit 5698e84

Please sign in to comment.