public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: xfs@oss.sgi.com
Subject: [PATCH 1/2] xfs_quota: remove extra 30 seconds from time limit reporting
Date: Wed, 27 Jan 2016 16:50:21 -0600	[thread overview]
Message-ID: <56A949AD.9020903@sandeen.net> (raw)
In-Reply-To: <56A9497C.9070400@sandeen.net>

The addition of 30s makes little sense; it's only added to the
values reported via the userspace tool, and doesn't reflect the
actual values used in the kernel. Setting a time limit to
"00:30:00" and reporting back "00:30:30" makes little sense to me.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---

diff --git a/quota/util.c b/quota/util.c
index 179aafd..7c43fbd 100644
--- a/quota/util.c
+++ b/quota/util.c
@@ -42,8 +42,6 @@ time_to_string(
 		time(&now);
 		timer = MAX(origin - now, 0);
 	}
-	if (timer > 60)	/* roundup */
-		timer += 30;
 
 	days = timer / SECONDS_IN_A_DAY;
 	if (days)


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2016-01-27 22:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 22:49 [PATCH 0/2] xfsprogs: minor quota fixups Eric Sandeen
2016-01-27 22:50 ` Eric Sandeen [this message]
2016-01-27 22:51 ` [PATCH 2/2] xfs_quota: fix up timer command help Eric Sandeen
2016-01-28 13:02 ` [PATCH 0/2] xfsprogs: minor quota fixups Carlos Maiolino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A949AD.9020903@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox