git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35538 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -169,7 +169,8 @@ static void main_loop(void)
}
- delay = (unsigned long)(last / fraction);
+ if (fraction > 0.001)
+ delay = (unsigned long)(last / fraction);
tv.tv_sec = delay / 1000000;
tv.tv_usec = delay % 1000000;