itemID % "Update interval" = offset (a remaining after the division)
For example, if:
itemid = 871089
Update interval = 3m
The bash can tell a countdown when the data collection is about to happen:
watch -n1 'echo $(( (871089 % 180 - ($(date +%s) % 180) + 180) % 180 ))'
No comments:
Post a Comment