In order to add (hopefully nice) throttling to the SMPP driver I'd like to modify the behaviour of the gwthread_sleep function in gwthread-pthread.c very slightly.
Currently the function receives the amount of seconds to sleep as a double, multiplies it by 1000 to get that value in milliseconds and then sleeps for that amount of time in milliseconds. What I'd like to do is if the function recieves a value of < 1 as the number of seconds to sleep for, that it instead assumes this to be the number of milliseconds to sleep for, skips the *1000 part and sleeps for this time instead. This way I can sleep nicely for < 1 second periods. Any objections to this before I do so? Regards Alex -- Alex Judd http://www.skywire.co.uk/ http://www.enpocket.com/
