summaryrefslogtreecommitdiff
path: root/src/print_disk_info.c
AgeCommit message (Collapse)Author
2014-03-12Unify use of string comparisonsMats
* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2) * strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2) * Prefer case-insensitive comparison for options
2014-03-09disk: Colorize output when below given thresholdMats
New disk module options: * threshold_type: ^(percentage|[kmgt]?bytes)_(free|avail)$ * low_threshold: <double> fixes #912
2013-12-10disk: Distinguish between IEC, SI and custom prefixesMats
* IEC: Ki, Mi, Gi, Ti (powers of 1024) * SI: k, M, G, T (powers of 1000) * custom: K, M, G, T (powers of 1024)
2012-11-15DragonFlyBSD support addedScott Tincman
2012-08-31introduce percentages for all values, document themMichael Stapelberg
2012-08-31adding percentage format string for disk info modulegereon
explicit cast to double, changed format string to percentage
2012-04-29Fix disk usage on OpenBSD.Jasper Lievisse Adriaanse
2012-04-08add yajl compat codeMichael Stapelberg
2012-03-25Properly output JSON with libyajlMichael Stapelberg
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg
This hardcodes all the JSON parts. Strings are not properly escaped currently. The best/easiest way to fix this is by actually using libyajl.
2011-12-09FreeBSD: fix disk usage printBaptiste Daroussin
2010-06-25disk_info: implement %availMirko Augsburger
2010-01-10disk: also round when printing TB (Thanks Merovius)Michael Stapelberg
2009-10-16Bugfix: Cast the integers to uint64_t *before* multiplying (Thanks msi)Michael Stapelberg
This fixes problems on 32-bit computers.
2009-10-12Cleanup disk "module"Michael Stapelberg
2009-10-11Implement disk info (%free/%used/%total)Michael Stapelberg