git ssb

15+

ansuz / dnssb



Commit 7f0916643cf58906cafbf0ff7d3700b5bb09328f

Merge branch 'master' of ssb://%aVOBlkoiDbK99ROZPIaiiDk+4q2P4+G7MGul4UxkBBM=.sha256

ansuz committed on 11/6/2016, 10:03:44 PM
Parent: fb9bdfe76f66353d2c55d805c9c36e8796e91855
Parent: 114301f31483353c7a9e8b62a87afdf79356cfa3

Files changed

lib/query.jschanged
lib/query.jsView
@@ -80,17 +80,14 @@
8080 }
8181
8282 ZoneSerials.prototype.addRecord = function (record) {
8383 for (var zone in expandName(record.name)) {
84- var ts = record.timestamp;
85- var value = this.serials[zone];
86- this.serials[zone] = isNaN(value) || ts > value ? ts : value;
84 + this.serials[zone] = (+this.serials[zone] || 0) + 1;
8785 }
8886 };
8987
9088 ZoneSerials.prototype.getSerial = function (zone) {
91- var secs = Math.floor(this.serials[zone]/1000) || 0;
92- return secs % 0x100000000;
89 + return this.serials[zone] % 0x100000000;
9390 };
9491
9592 Query.drainSet = function (each, onEnd) {
9693 var set = new KVSet();

Built with git-ssb-web