This commit is contained in:
jl777
2016-11-07 14:21:35 -03:00
parent 581c5dedb3
commit f846a85733
3 changed files with 11 additions and 9 deletions

View File

@@ -43,7 +43,11 @@ uint64_t komodo_paxtotal()
while ( PAX != 0 && (pax= (struct pax_transaction *)PAX->hh.next) != 0 && pax != tmp )
{
if ( pax->marked == 0 )
total += pax->fiatoshis;
{
if ( ASSETCHAINS_SYMBOL[0] == 0 )
total += pax->fiatoshis;
else total += pax->komodoshis;
}
tmp = pax;
pax = (struct pax_transaction *)pax->hh.next;
}
@@ -471,8 +475,6 @@ void komodo_gateway_iteration(char *symbol)
printf("error from %s\n",symbol);
sleep(30);
}
if ( (KOMODO_DEPOSIT= komodo_paxtotal()) != 0 )
printf("KOMODO_DEPOSIT %.8f RT.%u\n",dstr(KOMODO_DEPOSIT),KOMODO_REALTIME);
}
void komodo_iteration(char *symbol)