remove debug messages
This commit is contained in:
parent
eee695eeeb
commit
fef3fc2a4a
@ -124,9 +124,6 @@ export const findIndexSS = (structs, clock) => {
|
|||||||
let left = 0
|
let left = 0
|
||||||
let right = structs.length - 1
|
let right = structs.length - 1
|
||||||
let mid = structs[right]
|
let mid = structs[right]
|
||||||
if (!mid) {
|
|
||||||
console.log('\n\nMID!', right, clock, structs.length, mid, '\n\n')
|
|
||||||
}
|
|
||||||
let midclock = mid.id.clock
|
let midclock = mid.id.clock
|
||||||
if (midclock === clock) {
|
if (midclock === clock) {
|
||||||
return right
|
return right
|
||||||
@ -137,9 +134,6 @@ export const findIndexSS = (structs, clock) => {
|
|||||||
let midindex = math.floor((clock / (midclock + mid.length - 1)) * right) // pivoting the search
|
let midindex = math.floor((clock / (midclock + mid.length - 1)) * right) // pivoting the search
|
||||||
while (left <= right) {
|
while (left <= right) {
|
||||||
mid = structs[midindex]
|
mid = structs[midindex]
|
||||||
if (!mid) {
|
|
||||||
console.log('\n\n2', midindex, clock, '\n\n')
|
|
||||||
}
|
|
||||||
midclock = mid.id.clock
|
midclock = mid.id.clock
|
||||||
if (midclock <= clock) {
|
if (midclock <= clock) {
|
||||||
if (clock < midclock + mid.length) {
|
if (clock < midclock + mid.length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user