This commit is contained in:
Mars 2024-06-08 15:53:06 -04:00
parent bd402f57f5
commit 3ea546fe08
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
166 changed files with 18360 additions and 18199 deletions

View file

@ -14,10 +14,11 @@ struct BytesToGiB {
template <>
struct fmt::formatter<BytesToGiB> : formatter<double> {
template <typename FormatContext>
typename FormatContext::iterator format(const BytesToGiB BTG,
FormatContext& ctx) {
typename FormatContext::iterator
format(const BytesToGiB BTG, FormatContext& ctx) {
typename FormatContext::iterator out = formatter<double>::format(
static_cast<double>(BTG.value) / pow(1024, 3), ctx);
static_cast<double>(BTG.value) / pow(1024, 3), ctx
);
*out++ = 'G';
*out++ = 'i';
*out++ = 'B';
@ -75,7 +76,7 @@ int main() {
Weather::WeatherOutput json = config.getWeather().getWeatherInfo();
const long temp = std::lround(json.main.temp);
const long temp = std::lround(json.main.temp);
const string townName = json.name;
fmt::println("It is {}°F in {}", temp, townName);