Skip to content

Commit

Permalink
karm-io: Added unit when formating timespan.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed Apr 26, 2024
1 parent 59faca8 commit d51869b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/karm-io/fmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ struct Formatter<char const *> : public StringFormatter<Utf8> {
template <>
struct Formatter<TimeSpan> {
Res<usize> format(Io::TextWriter &writer, TimeSpan const &val) {
return Io::format(writer, "{}.{03}", val.toSecs(), val.toUSecs() % 1000);
return Io::format(writer, "{}.{03}s", val.toSecs(), val.toUSecs() % 1000);
}
};

Expand Down

0 comments on commit d51869b

Please sign in to comment.