diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-24 15:06:06 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-11-24 15:06:06 +0300 |
commit | 49f1275e2005c8bce2fdcad8499f4fad94a9d768 (patch) | |
tree | 6a59368ac3f94d6e03f80694bf80dbf502f8e07a /src/mod_muc_log.erl | |
parent | Add missing -callbacks (diff) |
Get rid of excessive (io)list_to_binary/1 calls
Diffstat (limited to '')
-rw-r--r-- | src/mod_muc_log.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_muc_log.erl b/src/mod_muc_log.erl index 5cf52e60f..2675db9b5 100644 --- a/src/mod_muc_log.erl +++ b/src/mod_muc_log.erl @@ -247,18 +247,18 @@ build_filename_string(TimeStamp, OutDir, RoomJID, {Dir, Filename, Rel} = case DirType of subdirs -> SYear = - iolist_to_binary(io_lib:format("~4..0w", + (str:format("~4..0w", [Year])), SMonth = - iolist_to_binary(io_lib:format("~2..0w", + (str:format("~2..0w", [Month])), - SDay = iolist_to_binary(io_lib:format("~2..0w", + SDay = (str:format("~2..0w", [Day])), {fjoin([SYear, SMonth]), SDay, <<"../..">>}; plain -> Date = - iolist_to_binary(io_lib:format("~4..0w-~2..0w-~2..0w", + (str:format("~4..0w-~2..0w-~2..0w", [Year, Month, Day])), @@ -727,7 +727,7 @@ fw(F, S, FileFormat) when is_atom(FileFormat) -> fw(F, S, [], FileFormat). fw(F, S, O, FileFormat) -> - S1 = list_to_binary(io_lib:format(binary_to_list(S) ++ "~n", O)), + S1 = (str:format(binary_to_list(S) ++ "~n", O)), S2 = case FileFormat of html -> S1; |