services/metrics/Metrics.jsm

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 "use strict";
     7 #ifndef MERGED_COMPARTMENT
     9 this.EXPORTED_SYMBOLS = ["Metrics"];
    11 const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
    13 const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000;
    15 #endif
    17 // We concatenate the JSMs together to eliminate compartment overhead.
    18 // This is a giant hack until compartment overhead is no longer an
    19 // issue.
    20 #define MERGED_COMPARTMENT
    22 #include providermanager.jsm
    23 ;
    24 #include dataprovider.jsm
    25 ;
    26 #include storage.jsm
    27 ;
    29 this.Metrics = {
    30   ProviderManager: ProviderManager,
    31   DailyValues: DailyValues,
    32   Measurement: Measurement,
    33   Provider: Provider,
    34   Storage: MetricsStorageBackend,
    35   dateToDays: dateToDays,
    36   daysToDate: daysToDate,
    37 };

mercurial