fluent-plugin-detect-exceptions 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,28 +0,0 @@
1
- #!/bin/bash
2
-
3
- DELAY=0.1
4
-
5
- while true
6
- do
7
- start_timestamp=`date +%s.%N`
8
-
9
- paths=`find /sys/fs/cgroup/memory/docker/* -type d`
10
- for path in $paths
11
- do
12
- id=${path##*/}
13
- memory=`cat /sys/fs/cgroup/memory/docker/${id}/memory.usage_in_bytes`
14
- echo -ne "${id}\t${memory} "
15
- done
16
- if [[ "$paths" != "" ]]
17
- then
18
- echo
19
- fi
20
-
21
- end_timestamp=`date +%s.%N`
22
- to_wait=`perl -e "print ${DELAY} - ${end_timestamp} + ${start_timestamp}"`
23
-
24
- if [[ `echo ${to_wait}'>'0 | bc -l` -ne 0 ]]
25
- then
26
- sleep $to_wait
27
- fi
28
- done