human, branch HEADprint numbers in human-readable format
332edf7a99c053d9d8f96a81cb5fbbce6c57253d2017-06-07T06:53:00Z2017-06-07T06:53:00ZMake README more usefulz3bracontactatz3bradotorgcommit 332edf7a99c053d9d8f96a81cb5fbbce6c57253d
parent 50c80e6ba12823184b6866e06b955dbd2ccdc5d7
Author: z3bra <contactatz3bradotorg>
Date: Wed, 7 Jun 2017 08:53:00 +0200
Make README more useful
50c80e6ba12823184b6866e06b955dbd2ccdc5d72016-05-01T19:32:24Z2016-05-01T19:32:24ZUpdate manpage to had flagsz3brawillyatmailoodotorgcommit 50c80e6ba12823184b6866e06b955dbd2ccdc5d7
parent 443a2adf892cd424d51733a0ee2ec44164479f80
Author: z3bra <willyatmailoodotorg>
Date: Sun, 1 May 2016 21:32:24 +0200
Update manpage to had flags
443a2adf892cd424d51733a0ee2ec44164479f802016-04-29T20:32:01Z2016-04-29T20:32:01ZMinor style update/refactoringz3brawillyatmailoodotorgcommit 443a2adf892cd424d51733a0ee2ec44164479f80
parent 7efd0ff2e01c72c2997535545ba5b62931b0e110
Author: z3bra <willyatmailoodotorg>
Date: Fri, 29 Apr 2016 22:32:01 +0200
Minor style update/refactoring
7efd0ff2e01c72c2997535545ba5b62931b0e1102016-04-29T20:26:44Z2016-04-29T20:27:16ZAdd PETA/EXA factorization and fix output (thanks pranomostro!)z3brawillyatmailoodotorgcommit 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.
1f789f4b2321bf0ca20096a24dbe1442b24fad7c2016-04-11T11:42:29Z2016-04-11T11:42:29ZAllocate input size staticallyz3brawillyatmailoodotorgcommit 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.
83ff4e8be78d328256b34a9c624654c6bbf453222016-04-10T23:01:35Z2016-04-10T23:01:35ZFix makefile's use of echoz3brawillyatmailoodotorgcommit 83ff4e8be78d328256b34a9c624654c6bbf45322
parent 8c6c2473ecf5c168e145c8fb784caee76bb97e18
Author: z3bra <willyatmailoodotorg>
Date: Mon, 11 Apr 2016 01:01:35 +0200
Fix makefile's use of echo
8c6c2473ecf5c168e145c8fb784caee76bb97e182016-04-10T22:52:24Z2016-04-10T23:00:32ZHandle multiple arguments and read from stdinz3brawillyatmailoodotorgcommit 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.
53e70a441dfd24c48ba912bcaaa23f725b200cdc2016-02-17T18:14:53Z2016-02-17T18:14:53ZFix a typo in the manpagez3brawillyatmailoodotorgcommit 53e70a441dfd24c48ba912bcaaa23f725b200cdc
parent 3fe99268e0da351870041e087bf0f27dee218c4d
Author: z3bra <willyatmailoodotorg>
Date: Wed, 17 Feb 2016 19:14:53 +0100
Fix a typo in the manpage
3fe99268e0da351870041e087bf0f27dee218c4d2015-10-23T11:00:14Z2015-10-23T11:00:14ZSanitize makefilez3brawillyatmailoodotorgcommit 3fe99268e0da351870041e087bf0f27dee218c4d
parent 875338685d3d412069ae68583114a97e2b7d4c52
Author: z3bra <willyatmailoodotorg>
Date: Fri, 23 Oct 2015 13:00:14 +0200
Sanitize makefile
875338685d3d412069ae68583114a97e2b7d4c522015-10-23T10:56:06Z2015-10-23T10:56:06ZAdd two-way conversion and -b flagz3brawillyatmailoodotorgcommit 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
e4cf962033ae7483d8db97e14c07e41b78a651102014-11-22T19:59:07Z2014-11-22T19:59:07ZFixed a typo in the examplesz3brawilly@mailoo.orgcommit e4cf962033ae7483d8db97e14c07e41b78a65110
parent 40b4dac2617605d9985a2ec49936c48ae8d53efb
Author: z3bra <willy@mailoo.org>
Date: Sat, 22 Nov 2014 20:59:07 +0100
Fixed a typo in the examples
40b4dac2617605d9985a2ec49936c48ae8d53efb2014-11-04T12:42:51Z2014-11-04T12:42:51ZAdded usage() functionz3brawilly@mailoo.orgcommit 40b4dac2617605d9985a2ec49936c48ae8d53efb
parent 696b6dd08c4c5f53b674a55a625fdbd6e2c70e58
Author: z3bra <willy@mailoo.org>
Date: Tue, 4 Nov 2014 13:42:51 +0100
Added usage() function
696b6dd08c4c5f53b674a55a625fdbd6e2c70e582014-11-04T12:28:45Z2014-11-04T12:28:45ZFixed a misbehaving power calculationz3brawilly@mailoo.orgcommit 696b6dd08c4c5f53b674a55a625fdbd6e2c70e58
parent b9a184f61f01aca16e52978b132f09edef80f40b
Author: z3bra <willy@mailoo.org>
Date: Tue, 4 Nov 2014 13:28:45 +0100
Fixed a misbehaving power calculation
b9a184f61f01aca16e52978b132f09edef80f40b2014-11-03T23:17:47Z2014-11-03T23:17:47Zfirst commitz3brawilly@mailoo.orgcommit b9a184f61f01aca16e52978b132f09edef80f40b
Author: z3bra <willy@mailoo.org>
Date: Tue, 4 Nov 2014 00:17:47 +0100
first commit