aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2011-10-18 18:02:28 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2011-10-18 18:02:28 +0200
commit802d09e83bb6ffa0a70b702f59069435d6feb8c6 (patch)
tree3e0a128b3c968339de55c4a724ae52c319a75d77 /src/redshift.c
parentSet buffering on stdout and stderr to line-buffered. (diff)
downloadredshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.gz
redshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.bz2
redshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.xz
Add various documentation updates: DESIGN and HACKING document, and various small comments int the source (Christian Jaeger).
Update man page with information on configuration file.
Diffstat (limited to 'src/redshift.c')
-rw-r--r--src/redshift.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/redshift.c b/src/redshift.c
index 08f3e1d..9cd1e36 100644
--- a/src/redshift.c
+++ b/src/redshift.c
@@ -930,6 +930,9 @@ main(int argc, char *argv[])
location_providers[i].name != NULL; i++) {
const location_provider_t *p =
&location_providers[i];
+ fprintf(stderr,
+ _("Trying location provider `%s'...\n"),
+ p->name);
r = provider_try_start(p, &location_state,
&config_state, NULL);
if (r < 0) {
@@ -966,6 +969,8 @@ main(int argc, char *argv[])
if (verbose) {
/* TRANSLATORS: Append degree symbols if possible. */
printf(_("Location: %f, %f\n"), lat, lon);
+ printf(_("Temperatures: %dK at day, %dK at night\n"),
+ temp_day, temp_night);
}
/* Latitude */
@@ -1314,7 +1319,7 @@ main(int argc, char *argv[])
}
}
- /* Sleep for a while */
+ /* Sleep for 5 seconds or 0.1 second. */
#ifndef _WIN32
if (short_trans) usleep(100000);
else usleep(5000000);