fix: bad division

This commit is contained in:
iceman1001 2019-02-25 19:03:31 +01:00
commit 56a75fbf0b

View file

@ -773,7 +773,7 @@ int AutoCorrelate(const int *in, int *out, size_t len, int window, bool SaveGrph
} }
int foo = ABS(hi-hi_1); int foo = ABS(hi-hi_1);
int bar = ((int)(((hi+hi_1) / 2) * 0.03)); int bar = (int)(((hi+hi_1) / 2) * 0.03);
if ( verbose && foo < bar ) { if ( verbose && foo < bar ) {
distance = idx_1 - idx; distance = idx_1 - idx;
PrintAndLogEx(SUCCESS, "possible 3% visible correlation %4d samples", distance); PrintAndLogEx(SUCCESS, "possible 3% visible correlation %4d samples", distance);