context:   shouldCheckForUpdate: function()  {    debug("shouldCheckForUpdate");    var shouldCheck = false;    try    {      var prefs = Components.classes["@mozilla.org/preferences-service;1"].        getService(Components.interfaces.nsIPrefBranch);        if (prefs.getBoolPref(kUNEnabledPref))      {        var freq = prefs.getIntPref(kUNFrequencyPref) * (24 * 60 * 60); // secs        var now = (new Date().valueOf())/1000; // secs        if (!prefs.prefHasUserValue(kUNLastCheckedPref))        {          // setting last_checked pref first time so must randomize in           // order that servers don't get flooded with updates.rdf checks          // (and eventually downloads of new clients) all at the same time          var randomizedLastChecked = now + freq * (1 + Math.random());          prefs.setIntPref(kUNLastCheckedPref, randomizedLastChecked);          return false;        }        var lastChecked = prefs.getIntPref(kUNLastCheckedPref);        if ((lastChecked + freq) > now)          return false;                prefs.setIntPref(kUNLastCheckedPref, now);        prefs = prefs.QueryInterface(Components.interfaces.nsIPrefService);        prefs.savePrefFile(null); // flush prefs now        shouldCheck = true;      }    }    catch (ex)    {      shouldCheck = false;      debug("Exception in shouldCheckForUpdate: " + ex);    }    return shouldCheck;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsUpdateNotifier.js/buggy/xpfe/components/updates/src/nsUpdateNotifier.js