From 50373c3d53b30857aae0580170a9c4b01daf2fdd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 20 Nov 2016 11:59:36 -0300 Subject: [PATCH] test --- src/komodo_utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index e4b80db04..31cd4e8d8 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1514,11 +1514,13 @@ struct komodo_state *komodo_stateptr(char *symbol,char *dest) int32_t komodo_isrealtime(int32_t *kmdheightp) { - char symbol[16],dest[16]; uint64_t mask; struct komodo_state *sp; + char symbol[16],dest[16]; int32_t baseid; uint64_t mask; struct komodo_state *sp; *kmdheightp = 0; if ( (sp= komodo_stateptr(symbol,dest)) != 0 ) { - mask = (1LL << 32) | 1LL; + if ( (baseid= komodo_baseid(symbol)) < 0 ) + return(0); + mask = (1LL << 32) | (1LL << baseid); if ( (sp->RTmask & mask) != mask ) { printf("%s not RT mask.%llx vs RTmask.%llx\n",ASSETCHAINS_SYMBOL,(long long)mask,(long long)sp->RTmask);