Skip to content
Snippets Groups Projects
Commit b77c94f5 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Debugging info

parent 4ee33929
Branches
Tags
No related merge requests found
...@@ -64,7 +64,7 @@ func track(session *storage.Session, ourId *id.ID, stop *stoppable.Single) { ...@@ -64,7 +64,7 @@ func track(session *storage.Session, ourId *id.ID, stop *stoppable.Single) {
protoIds, err := ephemeral.GetIdsByRange(ourId, receptionStore.GetIDSize(), protoIds, err := ephemeral.GetIdsByRange(ourId, receptionStore.GetIDSize(),
now, now.Sub(lastCheck)) now, now.Sub(lastCheck))
jww.DEBUG.Printf("Now: %d, LastCheck: %v (%v), Different: %v (%v)", jww.DEBUG.Printf("Now: %d, LastCheck: %d (%v), Different: %d (%v)",
now.UnixNano(), lastCheck, lastCheck, now.Sub(lastCheck), now.Sub(lastCheck)) now.UnixNano(), lastCheck, lastCheck, now.Sub(lastCheck), now.Sub(lastCheck))
jww.DEBUG.Printf("protoIds Count: %d", len(protoIds)) jww.DEBUG.Printf("protoIds Count: %d", len(protoIds))
......
...@@ -191,6 +191,8 @@ func (m *manager) follow(rng csprng.Source, comms followNetworkComms) { ...@@ -191,6 +191,8 @@ func (m *manager) follow(rng csprng.Source, comms followNetworkComms) {
//get the range fo filters which are valid for the identity //get the range fo filters which are valid for the identity
filtersStart, filtersEnd, outOfBounds := rounds.ValidFilterRange(identity, pollResp.Filters) filtersStart, filtersEnd, outOfBounds := rounds.ValidFilterRange(identity, pollResp.Filters)
jww.INFO.Printf("filtersStart (%d), filtersEnd(%d), oob %v", filtersStart, filtersEnd, outOfBounds)
//check if there are any valid filters returned //check if there are any valid filters returned
if outOfBounds { if outOfBounds {
return return
......
package rounds package rounds
import ( import (
jww "github.com/spf13/jwalterweatherman"
bloom "gitlab.com/elixxir/bloomfilter" bloom "gitlab.com/elixxir/bloomfilter"
"gitlab.com/elixxir/client/interfaces" "gitlab.com/elixxir/client/interfaces"
"gitlab.com/elixxir/client/storage/reception" "gitlab.com/elixxir/client/storage/reception"
...@@ -49,6 +50,9 @@ func ValidFilterRange(identity reception.IdentityUse, filters *mixmessages.Clien ...@@ -49,6 +50,9 @@ func ValidFilterRange(identity reception.IdentityUse, filters *mixmessages.Clien
identityStart := identity.StartValid.UnixNano() identityStart := identity.StartValid.UnixNano()
identityEnd := identity.EndValid.UnixNano() identityEnd := identity.EndValid.UnixNano()
jww.INFO.Printf("firstElementTS: %d, identityStart: %d, identityEnd: %d",
firstElementTS, identityStart, identityEnd)
startIdx = int((identityStart - firstElementTS) / filters.Period) startIdx = int((identityStart - firstElementTS) / filters.Period)
if startIdx < 0 { if startIdx < 0 {
startIdx = 0 startIdx = 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment