1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

LibWeb: Serialize Frequency according to spec

This commit is contained in:
stelar7 2023-05-27 22:28:35 +02:00 committed by Andreas Kling
parent 5dc82db0cb
commit b6d767fbb0

View file

@ -33,7 +33,7 @@ Frequency Frequency::percentage_of(Percentage const& percentage) const
ErrorOr<String> Frequency::to_string() const
{
return String::formatted("{}{}", m_value, unit_name());
return String::formatted("{}hz", to_hertz());
}
float Frequency::to_hertz() const