1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-30 19:46:56 +00:00
transmission/gtk/Percents.cc
Mike Gelfand 605c6bd031
Store percents as integer, with 2 digits of precision (#4933)
* Store percents as integer, with 2 digits of precision

* Fix GHA builds for Mac (missing pkg-config)

* Fix percents formatting
2023-02-18 01:14:01 +00:00

9 lines
190 B
C++

#include "Percents.h"
#include <libtransmission/transmission.h>
#include <libtransmission/utils.h>
std::string Percents::to_string() const
{
return tr_strpercent(raw_value_ / 100.);
}