Skip to content

Commit 78db85f

Browse files
Add starting time counter in collect.sh
1 parent f6a02de commit 78db85f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

collect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ DURATION=$3
88
VERBOSE=${4:-0}
99
SIGNAL_FILE=$5
1010
SIGNALBACK_FILE="/tmp/signalback/nso_collect_start_signalback_$$"
11-
11+
STARTI=$6
1212

1313
if [ -z "$PID" ] || [ -z "$OUTPUT_FILE" ] || [ -z "$DURATION" ]; then
1414
echo "Usage: $0 <pid> <output_file> <duration> [verbose_flag] [signal_file]"
@@ -34,7 +34,7 @@ mkdir -p "$OUTPUT_DIR"
3434

3535

3636

37-
for (( i=0;i<=$DURATION;i++ ))
37+
for (( i=$STARTI;i<=$DURATION;i++ ))
3838
do
3939

4040
# Wait for centralized controller signal

0 commit comments

Comments
 (0)