diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-08-16 22:49:41 -0400 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-08-16 22:49:41 -0400 |
commit | 970e9dc624e6ed429be9468befa2360bf4adcfd6 (patch) | |
tree | 258ea4d3cf8b4d1a7d8bb4878a6866c33811fb34 /src/redshift.c | |
parent | Fix #90: Print N/S and E/W in the location (diff) | |
download | redshift-ng-970e9dc624e6ed429be9468befa2360bf4adcfd6.tar.gz redshift-ng-970e9dc624e6ed429be9468befa2360bf4adcfd6.tar.bz2 redshift-ng-970e9dc624e6ed429be9468befa2360bf4adcfd6.tar.xz |
Fix #105: Limit decimals in displayed location to two
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redshift.c b/src/redshift.c index e39caa3..3f22f56 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -1001,7 +1001,7 @@ main(int argc, char *argv[]) if (verbose) { /* TRANSLATORS: Append degree symbols after %f if possible. */ - printf(_("Location: %f %s, %f %s\n"), + printf(_("Location: %.2f %s, %.2f %s\n"), fabs(lat), lat >= 0.f ? _("N") : _("S"), fabs(lon), lon >= 0.f ? _("E") : _("W")); printf(_("Temperatures: %dK at day, %dK at night\n"), |