rendered paste body--- src/usage_stats/usage_stats.cc 2011-09-20 19:49:08.000000000 +0900+++ src-build/usage_stats/usage_stats.cc 2011-09-20 20:08:53.000000000 +0900@@ -58,7 +58,8 @@ const char kRegistryPrefix[] = "usage_stats."; const char kLastUploadKey[] = "last_upload"; const char kClientIdKey[] = "client_id";-const uint32 kSendInterval = 23 * 60 * 60; // 23 hours+const uint32 kSendInterval = 60; // 60 seconds(?)+//const uint32 kSendInterval = 23 * 60 * 60; // 23 hours #include "usage_stats/usage_stats_list.h" @@ -130,8 +131,10 @@ } // namespace const uint32 UsageStats::kDefaultSchedulerDelay = 60*1000; // 1 min-const uint32 UsageStats::kDefaultSchedulerRandomDelay = 5*60*1000; // 5 min-const uint32 UsageStats::kDefaultScheduleInterval = 5*60*1000; // 5 min+const uint32 UsageStats::kDefaultSchedulerRandomDelay = 1*60*1000; // 1 min+//const uint32 UsageStats::kDefaultSchedulerRandomDelay = 5*60*1000; // 5 min+const uint32 UsageStats::kDefaultScheduleInterval = 2*60*1000; // 2 min+//const uint32 UsageStats::kDefaultScheduleInterval = 5*60*1000; // 5 min const uint32 UsageStats::kDefaultScheduleMaxInterval = 2*60*60*1000; // 2 hours UsageStats::UsageStats() {@@ -228,6 +231,8 @@ const uint32 current_sec = time(NULL); uint32 last_upload_sec; const string upload_key = string(kRegistryPrefix) + string(kLastUploadKey);+ VLOG(0) << "UsageStats::Send is called";+ if (!storage::Registry::Lookup(upload_key, &last_upload_sec) || last_upload_sec > current_sec) { // invalid value: time zone changed etc.@@ -317,7 +322,7 @@ return false; } Sync();- VLOG(2) << "send success";+ VLOG(0) << "sending usage stats success m9(^Д^)"; return true; }