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) |
| 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".
| 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().
1.6.3