Skip to content

Commit f35ece3

Browse files
committed
Fixed the refurbished fetch_and_apply.sh
1 parent 8b1b188 commit f35ece3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bin/fetch_osc_and_apply.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ apply_minute_diffs()
116116
update_state()
117117
{
118118
get_replicate_filename $TARGET
119+
printf -v TARGET_FILE %09u $TARGET
119120
TIMESTAMP_LINE=`grep "^timestamp" <"$TEMP_SOURCE_DIR/$TARGET_FILE.state.txt"`
120-
while [[ -z $TIMESTAMP_LINE ]]; do
121-
{
122-
sleep 5
123-
TIMESTAMP_LINE=`grep "^timestamp" <"$TEMP_SOURCE_DIR/$TARGET_FILE.state.txt"`
124-
}; done
125121
DATA_VERSION=${TIMESTAMP_LINE:10}
126122
};
127123

0 commit comments

Comments
 (0)