fix bug where timespec diff > 1sec