Skip to content

Commit 779d032

Browse files
committed
Declare OTP26 as the minimum version supported
1 parent 7ce10e1 commit 779d032

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

rebar.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
%% -*- mode: erlang -*-
2+
{minimum_otp_vsn, "26"}.
3+
24
{erl_opts, [
35
debug_info,
46
warn_unused_vars,
@@ -13,9 +15,8 @@
1315
warn_obsolete_guard,
1416
strict_validation,
1517
warn_export_vars,
16-
warn_exported_vars,
18+
warn_exported_vars
1719
%warn_missing_spec, warn_untyped_record, <- Added dynamically for OTP >=27 in rebar.config.script
18-
{platform_define, "^(2|3)", recent_otp}
1920
]}.
2021

2122
{deps, [

src/collectors/vm/prometheus_vm_statistics_collector.erl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ metrics() ->
144144
"except that real time is measured.", WallclockTime}
145145
].
146146

147-
-ifdef(recent_otp).
148147
dirty_stat() ->
149148
try
150149
SO = erlang:system_info(schedulers_online),
@@ -156,10 +155,6 @@ dirty_stat() ->
156155
catch
157156
_:_ -> [undefined, undefined]
158157
end.
159-
-else.
160-
dirty_stat() ->
161-
[undefined, undefined].
162-
-endif.
163158

164159
enabled_metrics() ->
165160
application:get_env(prometheus, vm_statistics_collector_metrics, all).

0 commit comments

Comments
 (0)