summaryrefslogtreecommitdiff
path: root/src/weatherreport/src/weatherreport_check_ioq.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/weatherreport/src/weatherreport_check_ioq.erl')
-rw-r--r--src/weatherreport/src/weatherreport_check_ioq.erl20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/weatherreport/src/weatherreport_check_ioq.erl b/src/weatherreport/src/weatherreport_check_ioq.erl
index 2c25964ef..a0e0b0e60 100644
--- a/src/weatherreport/src/weatherreport_check_ioq.erl
+++ b/src/weatherreport/src/weatherreport_check_ioq.erl
@@ -26,10 +26,12 @@
-module(weatherreport_check_ioq).
-behaviour(weatherreport_check).
--export([description/0,
- valid/0,
- check/1,
- format/1]).
+-export([
+ description/0,
+ valid/0,
+ check/1,
+ format/1
+]).
-define(THRESHOLD, 500).
@@ -67,9 +69,13 @@ check(Opts) ->
true ->
case ioq:get_queue_lengths() of
Queues when is_map(Queues) ->
- Total = maps:fold(fun(_Key, Val, Acc) ->
- Val + Acc
- end, 0, Queues),
+ Total = maps:fold(
+ fun(_Key, Val, Acc) ->
+ Val + Acc
+ end,
+ 0,
+ Queues
+ ),
[{total_to_level(Total), {ioq_requests, Total, Queues}}];
Error ->
[{warning, {ioq_requests_unknown, Error}}]