diff options
author | Mats <d912e3@gmail.com> | 2013-12-05 22:12:17 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-12-10 21:18:14 +0100 |
commit | 596f2264f4bc3d50da425873a7941b4de99afcb8 (patch) | |
tree | d13fe8635b85515f40bb4d8033f7c802258aff80 /include/i3status.h | |
parent | 717484184f6e8a3bb38f50cc6fbe4fbfb3544cd9 (diff) |
disk: Distinguish between IEC, SI and custom prefixes
* IEC: Ki, Mi, Gi, Ti (powers of 1024)
* SI: k, M, G, T (powers of 1000)
* custom: K, M, G, T (powers of 1024)
Diffstat (limited to 'include/i3status.h')
-rw-r--r-- | include/i3status.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h index e64cde5..5ab310b 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -145,7 +145,7 @@ char *auto_detect_format(); void set_timezone(const char *tz); void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, const char *format_down); -void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format); +void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format, const char *prefix_type); void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, const char *format_down, int low_threshold, char *threshold_type, bool last_full_capacity, bool integer_battery_capacity); void print_time(yajl_gen json_gen, char *buffer, const char *format, const char *tz, time_t t); void print_ddate(yajl_gen json_gen, char *buffer, const char *format, time_t t); |