8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:03:03 +01:00

Use MSVC6 variant of code everywhere to avoid excess conditionals

This commit is contained in:
skidder 2004-10-03 20:14:35 +00:00
parent c9f1d74489
commit 5dcb60e4ff

View File

@ -452,15 +452,9 @@ int CLIB_ROUTINE main( int argc, char *argv[])
if (LOCK_header->lhb_acquire_blocks) {
// CVC: MSVC up to v6 couldn't convert UINT64 to double.
#if defined(_MSC_VER) && _MSC_VER <= 1200
const float bottleneck =
(float) ((100. * (SINT64) LOCK_header->lhb_acquire_blocks) /
(SINT64) LOCK_header->lhb_acquires);
#else
const float bottleneck =
(float) ((100. * LOCK_header->lhb_acquire_blocks) /
LOCK_header->lhb_acquires);
#endif
FPRINTF(outfile, "\tMutex wait: %3.1f%%\n", bottleneck);
}
else