From e2921c8efb9b97dc4351585918ba830eb0aa2b56 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 14 Sep 2020 11:15:42 +0200 Subject: [PATCH] Reduce precision in lat/long examples --- README.md | 6 +++++- main.c | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1bb08f3..448239d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ sudo ninja -C build install See the helptext (`wlsunset -h`) ## Example + ``` -wlsunset -l 39.913818 -L 116.363625 +# Beijing lat/long. +wlsunset -l 39.9 -L 116.3 ``` + +Greater precision than one decimal place serves no purpose other than padding the command-line (https://xkcd.com/2170/). diff --git a/main.c b/main.c index 34adbe2..ef01c7a 100644 --- a/main.c +++ b/main.c @@ -348,8 +348,8 @@ static const char usage[] = "usage: %s [options]\n" " -h show this help message\n" " -T set high temperature (default: 6500)\n" " -t set low temperature (default: 4000)\n" -" -l set latitude (e.g. 39.913)\n" -" -L set longitude (e.g. 116.363)\n" +" -l set latitude (e.g. 39.9)\n" +" -L set longitude (e.g. 116.3)\n" " -d set ramping duration in minutes (default: 60)\n" " -g set gamma (default: 1.0)\n";