[PATCH] numfmt: fix help section typo

2013-02-05 Thread Assaf Gordon
Hello Pádraig,

Thank you for all the recent work on numfmt!

I noticed a typo in the help section, in my original program (The suffix says 
G but the values are mega). Also removes an extra space. Attached is a patch.

Thanks!
 -gordon


From b5b9e3281298fa14d7752579a63bfe3956d982f4 Mon Sep 17 00:00:00 2001
From: Assaf Gordon assafgor...@gmail.com
Date: Tue, 5 Feb 2013 11:04:41 -0500
Subject: [PATCH] numfmt: fix help section typo

* src/numfmt.c: change erroneous G to M.
---
 src/numfmt.c |   10 +-
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/numfmt.c b/src/numfmt.c
index cccd1d1..b37724e 100644
--- a/src/numfmt.c
+++ b/src/numfmt.c
@@ -856,19 +856,19 @@ UNIT options:\n\
   auto   Accept optional single-letter/two-letter suffix:\n\
  1K  = 1000\n\
  1Ki = 1024\n\
- 1G  = 100\n\
- 1Gi = 1048576\n\
+ 1M  = 100\n\
+ 1Mi = 1048576\n\
   si Accept optional single letter suffix:\n\
  1K = 1000\n\
- 1G  = 100\n\
+ 1M = 100\n\
  ...\n\
   iecAccept optional single letter suffix:\n\
  1K = 1024\n\
- 1G = 1048576\n\
+ 1M = 1048576\n\
  ...\n\
   iec-i  Accept optional two-letter suffix:\n\
  1Ki = 1024\n\
- 1Gi = 1048576\n\
+ 1Mi = 1048576\n\
  ...\n\
 \n\
 ), stdout);
-- 
1.7.7.4



Re: [PATCH] numfmt: fix help section typo

2013-02-05 Thread Bernhard Voelker
On February 5, 2013 at 5:10 PM Assaf Gordon assafgor...@gmail.com wrote:
 Hello Pádraig,

 Thank you for all the recent work on numfmt!

 I noticed a typo in the help section, in my original program (The suffix
 says G but the values are mega). Also removes an extra space. Attached is a
 patch.

Hi Padraig,

and maybe you could squash in a fix for the copyright year.
Sorry for the nit-picking - I didn't come to more than the
first few lines to read yet.

Have a nice day,
Berny

diff --git a/src/numfmt.c b/src/numfmt.c
index cccd1d1..f07f553 100644
--- a/src/numfmt.c
+++ b/src/numfmt.c
@@ -1,5 +1,5 @@
 /* Reformat numbers like 11505426432 to the more human-readable 11G
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2013 Free Software Foundation, Inc.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl
index c542483..68fa2ba 100644
--- a/tests/misc/numfmt.pl
+++ b/tests/misc/numfmt.pl
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 # Basic tests for numfmt.

-# Copyright (C) 2012 Free Software Foundation, Inc.
+# Copyright (C) 2013 Free Software Foundation, Inc.

 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by