From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/fs/gnunet-service-fs_pe.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/fs/gnunet-service-fs_pe.c') diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 7933b2dee..bb4b07c02 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c @@ -300,8 +300,7 @@ plan (struct PeerPlan *pp, * which satisfies all of the rules above. * * Note: M_PI_4 = PI/4 = arctan(1) - */ - rp->priority = + */rp->priority = round ((GSF_current_priorities + 1.0) * atan (delay.rel_value_us / avg_delay)) / M_PI_4; /* Note: usage of 'round' and 'atan' requires -lm */ @@ -812,5 +811,4 @@ GSF_plan_done () } - /* end of gnunet-service-fs_pe.h */ -- cgit v1.2.3