| 65 | extern bool media_ip_is_ipv6; |
| 66 | |
| 67 | inline void |
| 68 | timerdiv(struct timeval* tvp, float div) |
| 69 | { |
| 70 | double interval; |
| 71 | |
| 72 | if (div == 0 || div == 1) |
| 73 | return; |
| 74 | |
| 75 | interval = ((double) tvp->tv_sec * 1000000 + tvp->tv_usec) / (double) div; |
| 76 | tvp->tv_sec = interval / (int) 1000000; |
| 77 | tvp->tv_usec = interval - (tvp->tv_sec * 1000000); |
| 78 | } |
| 79 | |
| 80 | /* |
| 81 | * converts a float to a timeval structure |
nothing calls this directly
no outgoing calls
no test coverage detected