capture_sync: use ws_strtou function.