- increased variable size to accommodate bigger byte amounts
}
#endif
-string nice_unit_format(int input)
+string nice_unit_format(long long input)
{
- float size = input;
+ double size = input;
int sizecount = 0;
while (size > 1000)
sizecount++;
}
- float tmp; // round
+ double tmp; // round
tmp = size*10;
tmp += 0.5;
- tmp = int (tmp);
- tmp = float (tmp) /float (10);
+ tmp = (long long) (tmp);
+ tmp = double (tmp) /double (10);
size = tmp;
ostringstream out;
using I2n::to_upper;
#endif
-std::string nice_unit_format(int input);
+std::string nice_unit_format(long long 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);