changed for loop to while
This commit is contained in:
parent
a3480622bd
commit
b2c25dbc39
@ -90,7 +90,14 @@ update_data <- function(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for(i in 1:(cronjob_interval/update_interval)){
|
# for(i in 1:(cronjob_interval/update_interval)){
|
||||||
|
# message(Sys.time())
|
||||||
|
# update_data()
|
||||||
|
# Sys.sleep(60*update_interval)
|
||||||
|
# }
|
||||||
|
|
||||||
|
continue <- TRUE
|
||||||
|
while(continue){
|
||||||
message(Sys.time())
|
message(Sys.time())
|
||||||
update_data()
|
update_data()
|
||||||
Sys.sleep(60*update_interval)
|
Sys.sleep(60*update_interval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user