Lines Matching refs:latency
52 int link_rate(int *latency, int *netrate);
156 if (cd->latency == 0.0) { in get_latency()
161 lat = cd->latency; in get_latency()
282 int link_rate(int *latency, int *netrate) { in link_rate() argument
283 *latency = get_net_latency(); in link_rate()
296 if (*latency == LATENCY0 && *netrate == NETRATE0) { in link_rate()
298 } else if (*latency > 150 || *netrate < 20) { in link_rate()
300 } else if (*latency > 50 || *netrate < 150) { in link_rate()
302 } else if (*latency < 10 && *netrate > 300) { in link_rate()
694 cd->latency = dt3; in measure_send_rates()
705 int link, latency, netrate; in measure_send_rates() local
708 link = link_rate(&latency, &netrate); in measure_send_rates()
720 rfbLog("link_rate: %s - %d ms, %d KB/s\n", str, latency, in measure_send_rates()