commit: 8732423ac56a2c02ca6a39fb7d57758de2892886
parent: 5414abc71fd52dbf178676cb2cb775a1d2bf37ff
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 11 Sep 2018 04:43:42 +0200
lib/clairvoyance.ex: mix format
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/clairvoyance.ex b/lib/clairvoyance.ex
@@ -55,22 +55,22 @@ defmodule Clairvoyance do
end
def memory() do
- :memsup.get_system_memory_data
+ :memsup.get_system_memory_data()
|> Enum.into(%{})
end
def timestamp() do
- DateTime.utc_now
- |> DateTime.to_unix
+ DateTime.utc_now()
+ |> DateTime.to_unix()
end
def load_average() do
- [:cpu_sup.avg1, :cpu_sup.avg5, :cpu_sup.avg15]
- |> Enum.map(fn avg -> avg/256*100 end)
+ [:cpu_sup.avg1(), :cpu_sup.avg5(), :cpu_sup.avg15()]
+ |> Enum.map(fn avg -> avg / 256 * 100 end)
end
def hostname() do
- :net_adm.localhost
+ :net_adm.localhost()
|> List.to_string()
end
end