diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-11-18 14:10:02 +0000 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-11-18 14:10:02 +0000 |
| commit | 855ad0129e0320ef2a09b7d13f9af798368da753 (patch) | |
| tree | 99dc7a6cca18469127d244c945a9f13af59deaa0 | |
| parent | 47d2804ac573ac2c169988116508a42aa9f9708f (diff) | |
| download | rabbitmq-server-git-855ad0129e0320ef2a09b7d13f9af798368da753.tar.gz | |
Minor bugfix
| -rw-r--r-- | src/rabbit_memory_monitor.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_memory_monitor.erl b/src/rabbit_memory_monitor.erl index 0b6ad5c78a..03b3bfdec2 100644 --- a/src/rabbit_memory_monitor.erl +++ b/src/rabbit_memory_monitor.erl @@ -153,7 +153,8 @@ handle_call({report_queue_duration, Pid, QueueDuration}, From, queue_durations = Durations, desired_duration = SendDuration}) -> - QueueDuration1 = case QueueDuration > ?MAX_QUEUE_DURATION of + QueueDuration1 = case infinity == QueueDuration orelse + QueueDuration > ?MAX_QUEUE_DURATION of true -> infinity; false -> QueueDuration end, |
