[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 02/06: libps: Fix time comparison
From: |
Samuel Thibault |
Subject: |
[hurd] 02/06: libps: Fix time comparison |
Date: |
Mon, 02 Jan 2017 19:59:54 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit ee4795884ec145303115ac1bd88878684df46118
Author: Samuel Thibault <address@hidden>
Date: Mon Dec 19 03:33:59 2016 +0100
libps: Fix time comparison
* libps/spec.c (ps_cmp_times): Actually compare tv_usec fields of tv1
and tv2.
---
libps/spec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libps/spec.c b/libps/spec.c
index d8188d6..bfee34e 100644
--- a/libps/spec.c
+++ b/libps/spec.c
@@ -880,7 +880,7 @@ ps_cmp_times (struct proc_stat *ps1, struct proc_stat *ps2,
tv1.tv_sec > tv2.tv_sec ? 1
: tv1.tv_sec < tv2.tv_sec ? -1
: tv1.tv_usec > tv2.tv_usec ? 1
- : tv2.tv_usec < tv2.tv_usec ? -1
+ : tv1.tv_usec < tv2.tv_usec ? -1
: 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (5add1f4 -> 1320458), Samuel Thibault, 2017/01/02
- [hurd] 05/06: Revert "libnetfs: remove unused fields.", Samuel Thibault, 2017/01/02
- [hurd] 03/06: mach-defpager: make the default pager use vm_wire_all, Samuel Thibault, 2017/01/02
- [hurd] 04/06: mach-defpager: fix pager leak, Samuel Thibault, 2017/01/02
- [hurd] 01/06: procfs: provide magic retry response for /proc/self, Samuel Thibault, 2017/01/02
- [hurd] 02/06: libps: Fix time comparison,
Samuel Thibault <=
- [hurd] 06/06: Fix libports dependencies, Samuel Thibault, 2017/01/02