mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
switch from --utc to -u flag to enable UTC output for date command so it works on both Linux/Windows (which support --utc in addition to -u) and Mac OS X (which only supports -u)
This commit is contained in:
parent
a7b212ab0b
commit
c699fdf732
@ -657,6 +657,7 @@ BookmarksTracker.prototype = {
|
||||
// has a bug where it will generate a new one instead of throwing).
|
||||
// Our solution: cache item IDs -> GUIDs
|
||||
|
||||
let before = new Date();
|
||||
// FIXME: very roundabout way of getting id -> guid mapping!
|
||||
let store = new BookmarksStore();
|
||||
let all = store.getAllIDs();
|
||||
@ -664,6 +665,8 @@ BookmarksTracker.prototype = {
|
||||
for (let guid in all) {
|
||||
this._all[this._bms.getItemIdForGUID(guid)] = guid;
|
||||
}
|
||||
let after = new Date();
|
||||
dump((after - before) + "ms spent mapping id -> guid for " + [key for (key in all)].length + " bookmark items\n");
|
||||
|
||||
// Ignore changes to the special roots. We use special names for them, so
|
||||
// ignore their "real" places guid as well as ours, just in case
|
||||
|
@ -494,6 +494,7 @@ HistoryTracker.prototype = {
|
||||
_init: function HT__init() {
|
||||
this.__proto__.__proto__._init.call(this);
|
||||
|
||||
let before = new Date();
|
||||
// FIXME: very roundabout way of getting url -> guid mapping!
|
||||
// FIXME2: not updated after startup
|
||||
let all = this._store.getAllIDs();
|
||||
@ -501,6 +502,8 @@ HistoryTracker.prototype = {
|
||||
for (let guid in all) {
|
||||
this._all[all[guid]] = guid;
|
||||
}
|
||||
let after = new Date();
|
||||
dump((after - before) + "ms spent mapping id -> guid for " + [key for (key in all)].length + " history items\n");
|
||||
|
||||
this._hsvc.addObserver(this, false);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user