Bug 1369830 - fix "telementry" typo in netwerk; r=michal
authorTom Tromey <tom@tromey.com>
Fri, 02 Jun 2017 12:49:22 -0600
changeset 413686 1383878b7e8f18f2634e47fcf8912fd27ec0ef83
parent 413685 1a2d8f20bb23fd0e54bde99190a752a6a00e8c31
child 413687 6fcb8d17838d87c1864a776bfe1ddb95357c73c0
push id1490
push usermtabara@mozilla.com
push dateMon, 31 Jul 2017 14:08:16 +0000
treeherdermozilla-release@70e32e6bf15e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs1369830
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1369830 - fix "telementry" typo in netwerk; r=michal MozReview-Commit-ID: KPsXmJ6UYyZ
netwerk/cache2/CacheIOThread.cpp
netwerk/cache2/CacheStorageService.cpp
--- a/netwerk/cache2/CacheIOThread.cpp
+++ b/netwerk/cache2/CacheIOThread.cpp
@@ -537,32 +537,32 @@ void CacheIOThread::LoopOneLevel(uint32_
 {
   EventQueue events;
   events.SwapElements(mEventQueue[aLevel]);
   EventQueue::size_type length = events.Length();
 
   mCurrentlyExecutingLevel = aLevel;
 
   bool returnEvents = false;
-  bool reportTelementry = true;
+  bool reportTelemetry = true;
 
   EventQueue::size_type index;
   {
     MonitorAutoUnlock unlock(mMonitor);
 
     for (index = 0; index < length; ++index) {
       if (EventsPending(aLevel)) {
         // Somebody scheduled a new event on a lower level, break and harry
         // to execute it!  Don't forget to return what we haven't exec.
         returnEvents = true;
         break;
       }
 
-      if (reportTelementry) {
-        reportTelementry = false;
+      if (reportTelemetry) {
+        reportTelemetry = false;
         CacheIOTelemetry::Report(aLevel, length);
       }
 
       // Drop any previous flagging, only an event on the current level may set
       // this flag.
       mRerunCurrentEvent = false;
 
       events[index]->Run();
--- a/netwerk/cache2/CacheStorageService.cpp
+++ b/netwerk/cache2/CacheStorageService.cpp
@@ -2081,17 +2081,17 @@ CacheStorageService::GetCacheEntryInfo(C
 // static
 uint32_t CacheStorageService::CacheQueueSize(bool highPriority)
 {
   RefPtr<CacheIOThread> thread = CacheFileIOManager::IOThread();
   MOZ_ASSERT(thread);
   return thread->QueueSize(highPriority);
 }
 
-// Telementry collection
+// Telemetry collection
 
 namespace {
 
 bool TelemetryEntryKey(CacheEntry const* entry, nsAutoCString& key)
 {
   nsAutoCString entryKey;
   nsresult rv = entry->HashingKey(entryKey);
   if (NS_FAILED(rv))