Turn the size limit reported in exception into float.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-11-15 21:03:27 +01:00
parent 5b5df1e494
commit b8b2291298
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ entry_type parse_formdata()
throw runtime_error{format("The screenshot “{0:s}” is too big. "
"The limit is {1:.1f} MiB.",
screenshot.getFilename(),
size_limit / 1024 / 1024)};
size_limit / 1024.0 / 1024)};
}
const string filepath{files::get_tmpdir() / screenshot.getFilename()};