human, branch HEAD print numbers in human-readable format 332edf7a99c053d9d8f96a81cb5fbbce6c57253d 2017-06-07T06:53:00Z 2017-06-07T06:53:00Z Make README more useful z3bra contactatz3bradotorg commit 332edf7a99c053d9d8f96a81cb5fbbce6c57253d parent 50c80e6ba12823184b6866e06b955dbd2ccdc5d7 Author: z3bra <contactatz3bradotorg> Date: Wed, 7 Jun 2017 08:53:00 +0200 Make README more useful 50c80e6ba12823184b6866e06b955dbd2ccdc5d7 2016-05-01T19:32:24Z 2016-05-01T19:32:24Z Update manpage to had flags z3bra willyatmailoodotorg commit 50c80e6ba12823184b6866e06b955dbd2ccdc5d7 parent 443a2adf892cd424d51733a0ee2ec44164479f80 Author: z3bra <willyatmailoodotorg> Date: Sun, 1 May 2016 21:32:24 +0200 Update manpage to had flags 443a2adf892cd424d51733a0ee2ec44164479f80 2016-04-29T20:32:01Z 2016-04-29T20:32:01Z Minor style update/refactoring z3bra willyatmailoodotorg commit 443a2adf892cd424d51733a0ee2ec44164479f80 parent 7efd0ff2e01c72c2997535545ba5b62931b0e110 Author: z3bra <willyatmailoodotorg> Date: Fri, 29 Apr 2016 22:32:01 +0200 Minor style update/refactoring 7efd0ff2e01c72c2997535545ba5b62931b0e110 2016-04-29T20:26:44Z 2016-04-29T20:27:16Z Add PETA/EXA factorization and fix output (thanks pranomostro!) z3bra willyatmailoodotorg commit 7efd0ff2e01c72c2997535545ba5b62931b0e110 parent 1f789f4b2321bf0ca20096a24dbe1442b24fad7c Author: z3bra <willyatmailoodotorg> Date: Fri, 29 Apr 2016 22:26:44 +0200 Add PETA/EXA factorization and fix output (thanks pranomostro!) Original email: > 1.Remove trailing spaces and fix the indentation a little bit. > 2.Do not exit when an error occurs (factor(1) and sed(1) don't do this either) > 3.Don't print trailing nullbytes when a number is converted to decimal > before: > $ human 6 | od -bc > 0000000 066 000 012 > 6 \0 \n > 0000003 > > now: > $ human 6 | od -bc > 0000000 066 012 > 6 \n > 0000002 > 4.Fix a string access at 32 (now LINE_MAX) > 5.Add support for conversions up to EiB (Etabyte). I know this can be a bit > controversial. 1f789f4b2321bf0ca20096a24dbe1442b24fad7c 2016-04-11T11:42:29Z 2016-04-11T11:42:29Z Allocate input size statically z3bra willyatmailoodotorg commit 1f789f4b2321bf0ca20096a24dbe1442b24fad7c parent 83ff4e8be78d328256b34a9c624654c6bbf45322 Author: z3bra <willyatmailoodotorg> Date: Mon, 11 Apr 2016 13:42:29 +0200 Allocate input size statically kudos to pranomostro for this patch. This avoids a call to malloc() by allocating statically the buffer used to consume stdin. 83ff4e8be78d328256b34a9c624654c6bbf45322 2016-04-10T23:01:35Z 2016-04-10T23:01:35Z Fix makefile's use of echo z3bra willyatmailoodotorg commit 83ff4e8be78d328256b34a9c624654c6bbf45322 parent 8c6c2473ecf5c168e145c8fb784caee76bb97e18 Author: z3bra <willyatmailoodotorg> Date: Mon, 11 Apr 2016 01:01:35 +0200 Fix makefile's use of echo 8c6c2473ecf5c168e145c8fb784caee76bb97e18 2016-04-10T22:52:24Z 2016-04-10T23:00:32Z Handle multiple arguments and read from stdin z3bra willyatmailoodotorg commit 8c6c2473ecf5c168e145c8fb784caee76bb97e18 parent 53e70a441dfd24c48ba912bcaaa23f725b200cdc Author: z3bra <willyatmailoodotorg> Date: Mon, 11 Apr 2016 00:52:24 +0200 Handle multiple arguments and read from stdin pranomostro's patch to bring multiple argument handling on the CLI, as well as reading numbers to convert from stdin (one per line). This patch also replace getopts with arg.h. 53e70a441dfd24c48ba912bcaaa23f725b200cdc 2016-02-17T18:14:53Z 2016-02-17T18:14:53Z Fix a typo in the manpage z3bra willyatmailoodotorg commit 53e70a441dfd24c48ba912bcaaa23f725b200cdc parent 3fe99268e0da351870041e087bf0f27dee218c4d Author: z3bra <willyatmailoodotorg> Date: Wed, 17 Feb 2016 19:14:53 +0100 Fix a typo in the manpage 3fe99268e0da351870041e087bf0f27dee218c4d 2015-10-23T11:00:14Z 2015-10-23T11:00:14Z Sanitize makefile z3bra willyatmailoodotorg commit 3fe99268e0da351870041e087bf0f27dee218c4d parent 875338685d3d412069ae68583114a97e2b7d4c52 Author: z3bra <willyatmailoodotorg> Date: Fri, 23 Oct 2015 13:00:14 +0200 Sanitize makefile 875338685d3d412069ae68583114a97e2b7d4c52 2015-10-23T10:56:06Z 2015-10-23T10:56:06Z Add two-way conversion and -b flag z3bra willyatmailoodotorg commit 875338685d3d412069ae68583114a97e2b7d4c52 parent e4cf962033ae7483d8db97e14c07e41b78a65110 Author: z3bra <willyatmailoodotorg> Date: Fri, 23 Oct 2015 12:56:06 +0200 Add two-way conversion and -b flag The utility can now convert down to bytes, and understand number suffixes as B, K, M, G and T, to convert number from these factorization levels. For example: human -b 123M 128974848 e4cf962033ae7483d8db97e14c07e41b78a65110 2014-11-22T19:59:07Z 2014-11-22T19:59:07Z Fixed a typo in the examples z3bra willy@mailoo.org commit e4cf962033ae7483d8db97e14c07e41b78a65110 parent 40b4dac2617605d9985a2ec49936c48ae8d53efb Author: z3bra <willy@mailoo.org> Date: Sat, 22 Nov 2014 20:59:07 +0100 Fixed a typo in the examples 40b4dac2617605d9985a2ec49936c48ae8d53efb 2014-11-04T12:42:51Z 2014-11-04T12:42:51Z Added usage() function z3bra willy@mailoo.org commit 40b4dac2617605d9985a2ec49936c48ae8d53efb parent 696b6dd08c4c5f53b674a55a625fdbd6e2c70e58 Author: z3bra <willy@mailoo.org> Date: Tue, 4 Nov 2014 13:42:51 +0100 Added usage() function 696b6dd08c4c5f53b674a55a625fdbd6e2c70e58 2014-11-04T12:28:45Z 2014-11-04T12:28:45Z Fixed a misbehaving power calculation z3bra willy@mailoo.org commit 696b6dd08c4c5f53b674a55a625fdbd6e2c70e58 parent b9a184f61f01aca16e52978b132f09edef80f40b Author: z3bra <willy@mailoo.org> Date: Tue, 4 Nov 2014 13:28:45 +0100 Fixed a misbehaving power calculation b9a184f61f01aca16e52978b132f09edef80f40b 2014-11-03T23:17:47Z 2014-11-03T23:17:47Z first commit z3bra willy@mailoo.org commit b9a184f61f01aca16e52978b132f09edef80f40b Author: z3bra <willy@mailoo.org> Date: Tue, 4 Nov 2014 00:17:47 +0100 first commit