mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Use MSVC6 variant of code everywhere to avoid excess conditionals
This commit is contained in:
parent
c9f1d74489
commit
5dcb60e4ff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user