statusbox.cpp File Reference

Go to the source code of this file.

Classes

struct  LogLine

Functions

static const QString sm_str (long long sizeKB, int prec=1)
 Returns a short string describing an amount of space, choosing one of a number of useful units, "TB", "GB", "MB", or "KB".
static const QString usage_str_kb (long long total, long long used, long long free)
static const QString usage_str_mb (float total, float used, float free)
static void disk_usage_with_rec_time_kb (QStringList &out, long long total, long long used, long long free, const recprof2bps_t &prof2bps)
static const QString uptimeStr (time_t uptime)

Function Documentation

sm_str ( long long  sizeKB,
int  prec = 1 
) [static]

Returns a short string describing an amount of space, choosing one of a number of useful units, "TB", "GB", "MB", or "KB".

Parameters:
sizeKB Number of kilobytes.
prec Precision to use if we have less than ten of whatever unit is chosen.

Definition at line 1007 of file statusbox.cpp.

Referenced by StatusBox::doAutoExpireList(), and usage_str_kb().

static const QString usage_str_kb ( long long  total,
long long  used,
long long  free 
) [static]

Definition at line 1028 of file statusbox.cpp.

Referenced by disk_usage_with_rec_time_kb(), and usage_str_mb().

static const QString usage_str_mb ( float  total,
float  used,
float  free 
) [static]

Definition at line 1043 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().

static void disk_usage_with_rec_time_kb ( QStringList &  out,
long long  total,
long long  used,
long long  free,
const recprof2bps_t prof2bps 
) [static]

Definition at line 1049 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().

static const QString uptimeStr ( time_t  uptime  )  [static]

Definition at line 1082 of file statusbox.cpp.

Referenced by StatusBox::doMachineStatus().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sun May 27 06:41:46 2012 for MythTV by  doxygen 1.6.3