Skip to content

Commit

Permalink
Update telegraf process.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jan 10, 2024
1 parent b56791b commit 2d07051
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/assets/mirrors/process.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash
#!/bin/sh

ps -e -o s= -o comm= | grep -v '^S' | sort | uniq -c | awk '{printf("process,state=%s,name=%s count=%i\n",$2,$3,$1)}'
ps -e -o s= -o comm= |
grep -v '^S ' |
sed 's|/.*$|/|g' |
sort | uniq -c |
awk '{printf("process,state=%s,name=%s count=%ii\n",$2,$3,$1)}'
4 changes: 4 additions & 0 deletions docs/services/mirrors/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
icon: material/mirror-rectangle
---

# 开源镜像站

## 历史
Expand Down

0 comments on commit 2d07051

Please sign in to comment.