X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;ds=sidebyside;f=stats.c;h=91c916688f4473b88005147424238f2d78871b34;hb=e82fd57b92d94287f728e37a3e17aaab11b722b8;hp=b9692744c2893338927b10146376c4534f5f2a22;hpb=41b7047c909cb5d8243901080db4931ebf165acf;p=onak.git
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) {