X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=stats.c;h=91c916688f4473b88005147424238f2d78871b34;hp=b9692744c2893338927b10146376c4534f5f2a22;hb=de18b56efecadc4b5d2473904828db9c08cd2162;hpb=41b7047c909cb5d8243901080db4931ebf165acf diff --git a/stats.c b/stats.c index b969274..91c9166 100644 --- a/stats.c +++ b/stats.c @@ -136,25 +136,21 @@ void dofindpath(struct onak_dbctx *dbctx, uint64_t have, uint64_t want, bool html, int count) { struct stats_key *keyinfoa, *keyinfob, *curkey; - uint64_t fullhave, fullwant; int rec; int pathnum; char *uid; - fullhave = dbctx->getfullkeyid(dbctx, have); - fullwant = dbctx->getfullkeyid(dbctx, want); - /* * Make sure the keys we have and want are in the cache. */ - (void) dbctx->cached_getkeysigs(dbctx, fullhave); - (void) dbctx->cached_getkeysigs(dbctx, fullwant); + (void) dbctx->cached_getkeysigs(dbctx, have); + (void) dbctx->cached_getkeysigs(dbctx, want); - if ((keyinfoa = findinhash(fullhave)) == NULL) { + if ((keyinfoa = findinhash(have)) == NULL) { printf("Couldn't find key 0x%016" PRIX64 ".\n", have); return; } - if ((keyinfob = findinhash(fullwant)) == NULL) { + if ((keyinfob = findinhash(want)) == NULL) { printf("Couldn't find key 0x%016" PRIX64 ".\n", want); return; } @@ -203,7 +199,7 @@ void dofindpath(struct onak_dbctx *dbctx, "User id not found])%s
\n", curkey->keyid, curkey->keyid, - (curkey->keyid == fullwant) ? + (curkey->keyid == want) ? "" : " signs"); } else if (html && uid != NULL) { printf("keyid, curkey->keyid, txt2html(uid), - (curkey->keyid == fullwant) ? + (curkey->keyid == want) ? "" : " signs"); } else { printf("0x%016" PRIX64 " (%s)%s\n", @@ -225,7 +221,7 @@ void dofindpath(struct onak_dbctx *dbctx, (uid == NULL) ? "[User id not found]" : uid, - (curkey->keyid == fullwant) ? + (curkey->keyid == want) ? "" : " signs"); } if (uid != NULL) {