From 38d7be1cf5dfdc33866134f12389c11c0b5b73ea Mon Sep 17 00:00:00 2001 From: Rodrigo Linfati Date: Tue, 25 Jan 2011 00:48:22 +0100 Subject: [PATCH 1/1] fix the maximal unstable --- debian/changelog | 6 ++++++ src/glatitude.cpp | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d5e07e1..615b117 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +googlelatitude (0.4-7) unstable; urgency=low + + * fix maximal accuracy + + -- Rodrigo Linfati Tue, 25 Jan 2011 00:48:01 +0100 + googlelatitude (0.4-6) unstable; urgency=low * GUI for the daemon mode diff --git a/src/glatitude.cpp b/src/glatitude.cpp index 5d9c421..77feaed 100644 --- a/src/glatitude.cpp +++ b/src/glatitude.cpp @@ -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 { -- 1.7.9.5