Don't wait(interval) after last entry
This commit is contained in:
parent
257a7dbb93
commit
4297f68d41
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.6)
|
cmake_minimum_required (VERSION 3.6)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.8.0
|
VERSION 0.8.1
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,10 @@ int main(int argc, char *argv[])
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep_for(seconds(config[profile]["interval"].asUInt64()));
|
if (rit != entries.rend())
|
||||||
|
{ // Only sleep if this is not the last entry
|
||||||
|
sleep_for(seconds(config[profile]["interval"].asUInt64()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write the new last_entry only if no error happened.
|
// Write the new last_entry only if no error happened.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user