--- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c index 1cabe15..446eecf 100644 --- a/main.c +++ b/main.c @@ -276,8 +276,8 @@ static struct globals *alfred_init(int argc, char *argv[]) return NULL; case 'p': sync_period = strtod(optarg, NULL); - globals->sync_period.tv_sec = (int) sync_period; - globals->sync_period.tv_nsec = (double) (sync_period - (int) sync_period) * 1e9; + globals->sync_period.tv_sec = (int)sync_period; + globals->sync_period.tv_nsec = (double)(sync_period - (int)sync_period) * 1e9; printf(" ** Setting sync interval to: %.9f seconds (%ld.%09ld)\n", sync_period, globals->sync_period.tv_sec, globals->sync_period.tv_nsec); break; case '4':
Thanks Jonathan,
I've added your sign-off manually (but only this time, since its so trivial! please don't forget it on other patches) and adjusted the subject. The patch can be found in revision c73e56c.
Thanks, Simon
On Thursday, January 26, 2017 7:23:09 PM CET Jonathan Haws wrote:
main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c index 1cabe15..446eecf 100644 --- a/main.c +++ b/main.c @@ -276,8 +276,8 @@ static struct globals *alfred_init(int argc, char *argv[]) return NULL; case 'p': sync_period = strtod(optarg, NULL);
globals->sync_period.tv_sec = (int) sync_period;
globals->sync_period.tv_nsec = (double) (sync_period - (int)
sync_period) * 1e9; + globals->sync_period.tv_sec = (int)sync_period;
globals->sync_period.tv_nsec = (double)(sync_period -
(int)sync_period)
- 1e9; printf(" ** Setting sync interval to: %.9f seconds (%ld.%09ld)\n",
sync_period, globals->sync_period.tv_sec, globals->sync_period.tv_nsec); break; case '4':
I've added your sign-off manually (but only this time, since its so trivial! please don't forget it on other patches) and adjusted the subject. The patch can be found in revision c73e56c.
Shoot - I knew I forgot something when I ran format-patch! Thanks for covering me. :)
b.a.t.m.a.n@lists.open-mesh.org