}
#endif
-string nice_unit_format(long long input)
+string nice_unit_format(const int64_t input)
{
double size = input;
int sizecount = 0;
double tmp; // round
tmp = size*10;
tmp += 0.5;
- tmp = (long long) (tmp);
+ tmp = (int64_t) (tmp);
tmp = double (tmp) /double (10);
size = tmp;
#include <string>
#include <sstream>
#include <stdexcept>
+#include <sys/types.h>
namespace I2n
{
using I2n::to_upper;
#endif
-std::string nice_unit_format(long long input);
+std::string nice_unit_format(const int64_t input);
bool replace_all(std::string &base, const std::string *ist, const std::string *soll);
bool replace_all(std::string &base, const char *ist, const char *soll);