diff options
author | Marek Majkowski <marek@rabbitmq.com> | 2011-03-08 11:58:10 +0000 |
---|---|---|
committer | Marek Majkowski <marek@rabbitmq.com> | 2011-03-08 11:58:10 +0000 |
commit | 4dfbd8dc307d9fe76b7df03bfc101a55faa09837 (patch) | |
tree | f04f72dcb8e5f6431817882ef5540896410f90c9 /src/file_handle_cache.erl | |
parent | 788d800206742fd0630dc6cfb5d1a2e533c2f416 (diff) | |
download | rabbitmq-server-4dfbd8dc307d9fe76b7df03bfc101a55faa09837.tar.gz |
Floats are bad. Use integer division instead. (via Matthias)
Diffstat (limited to 'src/file_handle_cache.erl')
-rw-r--r-- | src/file_handle_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index f27adfd9..304f9335 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -1188,7 +1188,7 @@ ulimit() -> {win32, _OsName} -> %% On Windows max_fds is twice the number of open files: %% https://github.com/yrashk/erlang/blob/master/erts/emulator/sys/win32/sys.c#L2463-2466 - MaxFds / 2; + MaxFds div 2; _Any -> %% For other operating systems trust Erlang. MaxFds |