Reduce precision in lat/long examples

master
Kenny Levinsen 2020-09-14 11:15:42 +02:00
parent 235887e6e9
commit e2921c8efb
2 changed files with 7 additions and 3 deletions

View File

@ -15,6 +15,10 @@ sudo ninja -C build install
See the helptext (`wlsunset -h`) See the helptext (`wlsunset -h`)
## Example ## 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/).

4
main.c
View File

@ -348,8 +348,8 @@ static const char usage[] = "usage: %s [options]\n"
" -h show this help message\n" " -h show this help message\n"
" -T <temp> set high temperature (default: 6500)\n" " -T <temp> set high temperature (default: 6500)\n"
" -t <temp> set low temperature (default: 4000)\n" " -t <temp> set low temperature (default: 4000)\n"
" -l <lat> set latitude (e.g. 39.913)\n" " -l <lat> set latitude (e.g. 39.9)\n"
" -L <long> set longitude (e.g. 116.363)\n" " -L <long> set longitude (e.g. 116.3)\n"
" -d <minutes> set ramping duration in minutes (default: 60)\n" " -d <minutes> set ramping duration in minutes (default: 60)\n"
" -g <gamma> set gamma (default: 1.0)\n"; " -g <gamma> set gamma (default: 1.0)\n";