poll() timeout is milliseconds, not seconds

Poll says negative values are infinite, so -1 and -1000 still work properly.