Commit 7f0916643cf58906cafbf0ff7d3700b5bb09328f
Merge branch 'master' of ssb://%aVOBlkoiDbK99ROZPIaiiDk+4q2P4+G7MGul4UxkBBM=.sha256
ansuz committed on 11/6/2016, 10:03:44 PMParent: fb9bdfe76f66353d2c55d805c9c36e8796e91855
Parent: 114301f31483353c7a9e8b62a87afdf79356cfa3
Files changed
lib/query.js | changed |
lib/query.js | ||
---|---|---|
@@ -80,17 +80,14 @@ | ||
80 | 80 … | } |
81 | 81 … | |
82 | 82 … | ZoneSerials.prototype.addRecord = function (record) { |
83 | 83 … | 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; | |
87 | 85 … | } |
88 | 86 … | }; |
89 | 87 … | |
90 | 88 … | 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; | |
93 | 90 … | }; |
94 | 91 … | |
95 | 92 … | Query.drainSet = function (each, onEnd) { |
96 | 93 … | var set = new KVSet(); |
Built with git-ssb-web