fix the maximal unstable
[googlelatitude] / src / glatitude.cpp
index 5d9c421..77feaed 100644 (file)
@@ -38,7 +38,7 @@ void GoogleLatitude::reset() {
 void GoogleLatitude::set(double la, double lo, double ac) {
     latitude = la;
     longitude = lo;
-    accuracy = ac;
+    accuracy = ac>100000?  100000 : ac;
 
     qDebug() << "GoogleLatitude: set la" << la << "lo" << lo << "ac" << ac << "current" << QDateTime::currentDateTime().toUTC().toTime_t();
     if (login_error) return;
@@ -93,6 +93,7 @@ void GoogleLatitude::finishedreply(QNetworkReply *r) {
         } else {
             lastupdate = QDateTime::currentDateTime().toUTC().toTime_t();
             qDebug() << "GoogleLatitude: update ok" << "lastupdate" << lastupdate;
+            qDebug() << output;
             emit OK();
         }
     } else {