Browse Source

KNF

OPENBSD_3_7
henning 20 years ago
parent
commit
8f4f234d9b
1 changed files with 10 additions and 10 deletions
  1. +10
    -10
      src/usr.sbin/ntpd/ntp.c

+ 10
- 10
src/usr.sbin/ntpd/ntp.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntp.c,v 1.49 2005/01/28 12:37:20 dtucker Exp $ */
/* $OpenBSD: ntp.c,v 1.50 2005/02/02 19:03:52 henning Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -461,15 +461,15 @@ priv_host_dns(char *name, u_int32_t peerid)
void void
update_scale(double offset) update_scale(double offset)
{ {
if (offset < 0)
offset = -offset;
if (offset > QSCALE_OFF_MAX)
conf->scale = 1;
else if (offset < QSCALE_OFF_MIN)
conf->scale = QSCALE_OFF_MAX / QSCALE_OFF_MIN;
else
conf->scale = QSCALE_OFF_MAX / offset;
if (offset < 0)
offset = -offset;
if (offset > QSCALE_OFF_MAX)
conf->scale = 1;
else if (offset < QSCALE_OFF_MIN)
conf->scale = QSCALE_OFF_MAX / QSCALE_OFF_MIN;
else
conf->scale = QSCALE_OFF_MAX / offset;
} }
time_t time_t


Loading…
Cancel
Save