more doxygen
This commit is contained in:
+17
-5
@@ -30,7 +30,12 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
/** print a memory value with the correct unit to a given string */
|
/** Print a memory value with the correct unit to a given string.
|
||||||
|
* \param *dst String to print the value to.
|
||||||
|
* \param value Value to print.
|
||||||
|
* \param roundlimit Set < 1.0 if precision of original input value is not sufficient.
|
||||||
|
* \return dst
|
||||||
|
*/
|
||||||
char *
|
char *
|
||||||
sprintf_memory(char *dst, double value, double roundlimit)
|
sprintf_memory(char *dst, double value, double roundlimit)
|
||||||
{
|
{
|
||||||
@@ -50,7 +55,11 @@ sprintf_memory(char *dst, double value, double roundlimit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** print a percentage value to a given string */
|
/** Print a percentage value to a given string.
|
||||||
|
* \param *dst String to print the percentage value to.
|
||||||
|
* \param percent Value to print.
|
||||||
|
* \return dst
|
||||||
|
*/
|
||||||
char *
|
char *
|
||||||
sprintf_percent(char *dst, double percent)
|
sprintf_percent(char *dst, double percent)
|
||||||
{
|
{
|
||||||
@@ -63,10 +72,13 @@ sprintf_percent(char *dst, double percent)
|
|||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** converts a value with unit value
|
|
||||||
|
/** Convert a value with unit value.
|
||||||
* does not do formatting
|
* does not do formatting
|
||||||
* base : should be 1000 for decimal and 1024 for binary units
|
* \param *value Pointer to the value to be scaled
|
||||||
* roundlimit : set < 1.0 if precision of original input value is not sufficient
|
* \param base Base used for scaling (e.g. 1000 for decimal, 1024 for binary units)
|
||||||
|
* \param roundlimit Set < 1.0 if precision of original input value is not sufficient
|
||||||
|
* \return Unit string to be used when displaying value
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
convert_double(double *value, int base, double roundlimit)
|
convert_double(double *value, int base, double roundlimit)
|
||||||
|
|||||||
Reference in New Issue
Block a user