diff options
-rw-r--r-- | libmateweather/test_sun_moon.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libmateweather/test_sun_moon.c b/libmateweather/test_sun_moon.c index a3ab787..9ee1fd7 100644 --- a/libmateweather/test_sun_moon.c +++ b/libmateweather/test_sun_moon.c @@ -71,14 +71,10 @@ main (int argc, char **argv) fabs(latitude), (latitude >= 0. ? 'N' : 'S'), fabs(longitude), (longitude >= 0. ? 'E' : 'W'), asctime(gmtime(&info.update))); - - if (bsun) { - printf("sunrise: %s", - (info.sunriseValid ? ctime(&info.sunrise) : "(invalid)\n")); - printf("sunset: %s", - (info.sunsetValid ? ctime(&info.sunset) : "(invalid)\n")); - } - + printf("sunrise: %s", + (info.sunriseValid ? ctime(&info.sunrise) : "(invalid)\n")); + printf("sunset: %s", + (info.sunsetValid ? ctime(&info.sunset) : "(invalid)\n")); if (bmoon) { printf("moonphase: %g\n", info.moonphase); printf("moonlat: %g\n", info.moonlatitude); |