Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sysstat-post-process.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def process_pidstat(log_file):
for field_name, val in fields.items():
names = {"cmd": command, "pid": pid, "type": field_name}
desc["type"] = "NonBusy-CPU" if field_name == "wait" else "Busy-CPU"
sample = {"end": time_ms, "value": val}
sample = {"end": time_ms, "value": val / 100}
metrics.log_sample("pidstat", desc, names, sample)

fh.close()
Expand Down
9 changes: 5 additions & 4 deletions sysstat-stop
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ if [ -e sysstat-pids.txt ]; then
while read pid; do
kill -s SIGINT $pid
done <sysstat-pids.txt
find . -name "*stdout.txt" -o -name "*stderr.txt" -o -name "*.json" | while read line; do
echo "Compressing: $line"
xz -3 -T 0 $line
wait
find . -name "*stdout.txt" -o -name "*stderr.txt" -o -name "*.json" | while read -r line; do
echo "Compressing: $line"
xz -3 -T 0 "$line"
done
else
echo "Could not find sysstst-pids.txt"
echo "Could not find sysstat-pids.txt"
echo "PWD: `/bin/pwd`"
echo "LS:"
/bin/ls -l
Expand Down
Loading