Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: main.cc

Issue 3183004: AU: Switch GLib's timeout sources from milliseconds to seconds. (Closed) Base URL: http://src.chromium.org/git/update_engine.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libcurl_http_fetcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: main.cc
diff --git a/main.cc b/main.cc
index c196ed5be3f90e734f1731f6ba489c62dbcfe5b8..3ae1e4bec40b1e089e12e310918301d3c34ca92c 100644
--- a/main.cc
+++ b/main.cc
@@ -60,8 +60,8 @@ void SchedulePeriodicUpdateChecks(UpdateAttempter* update_attempter) {
// Kick off periodic updating. First, update after 2 minutes. Also, update
// every 30 minutes.
- g_timeout_add(2 * 60 * 1000, &UpdateOnce, update_attempter);
- g_timeout_add(30 * 60 * 1000, &UpdatePeriodically, update_attempter);
+ g_timeout_add_seconds(2 * 60, &UpdateOnce, update_attempter);
+ g_timeout_add_seconds(30 * 60, &UpdatePeriodically, update_attempter);
}
void SetupDbusService(UpdateEngineService* service) {
« no previous file with comments | « libcurl_http_fetcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698