Revision: 739
http://gpredict.svn.sourceforge.net/gpredict/?rev=739&view=rev
Author: aa1vs
Date: 2011-01-20 12:55:42 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
Convert gps update time to seconds.
Modified Paths:
--------------
branches/gpsd_testing/src/gtk-sat-module.c
Modified: branches/gpsd_testing/src/gtk-sat-module.c
===================================================================
--- branches/gpsd_testing/src/gtk-sat-module.c 2011-01-19 12:20:30 UTC (rev 738)
+++ branches/gpsd_testing/src/gtk-sat-module.c 2011-01-20 12:55:42 UTC (rev 739)
@@ -1372,7 +1372,7 @@
buff[TIME_FORMAT_MAX_LENGTH]='\0';
if (module->qth->type==QTH_GPSD_TYPE) {
- buff2=g_strdup_printf("%s GPS %0.0f seconds old", buff,fabs(module->tmgCdnum-module->qth->gpsd_update));
+ buff2=g_strdup_printf("%s GPS %0.3f seconds old", buff,fabs(module->tmgCdnum-module->qth->gpsd_update)*(24*3600));
gtk_label_set_text (GTK_LABEL (module->header), buff2);
g_free(buff2);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|