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)
|
||||
project (mastorss
|
||||
VERSION 0.8.0
|
||||
VERSION 0.8.1
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -116,8 +116,11 @@ int main(int argc, char *argv[])
|
|||
return ret;
|
||||
}
|
||||
|
||||
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_config();
|
||||
|
|
Loading…
Reference in New Issue
Block a user