]> Pileus Git - aweather/blobdiff - src/plugins/radar.c
Give NWS more time to update their servers
[aweather] / src / plugins / radar.c
index cbdf12c431a7f4fda4d82d0742dd0af8a10aea5d..a994b2341715133ee37fbeecc48cada353bb8720 100644 (file)
@@ -301,6 +301,11 @@ RadarSite *radar_site_new(city_t *city, GtkWidget *pconfig,
        site->city    = city;
        site->pconfig = pconfig;
 
+       /* Set initial location */
+       gdouble lat, lon, elev;
+       grits_viewer_get_location(viewer, &lat, &lon, &elev);
+       _site_on_location_changed(viewer, lat, lon, elev, site);
+
        /* Add marker */
        g_idle_add_full(G_PRIORITY_LOW, _site_add_marker, site, NULL);
 
@@ -490,7 +495,7 @@ gpointer _conus_update_thread(gpointer _conus)
                 * the index pages get cached and out of date */
                struct tm tm;
                gmtime_r(&conus->time, &tm);
-               time_t onthe8 = conus->time - 60*((tm.tm_min+2)%10);
+               time_t onthe8 = conus->time - 60*((tm.tm_min+1)%10+1);
                gmtime_r(&onthe8, &tm);
                nearest = g_strdup_printf("Conus_%04d%02d%02d_%02d%02d_N0Ronly.gif",
                                tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,