[ARVADOS] updated: abbb31362b5fee5763cb9afa56fe1c3f372721aa
git at public.curoverse.com
git at public.curoverse.com
Thu Jun 12 14:16:23 EDT 2014
Summary of changes:
services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
via abbb31362b5fee5763cb9afa56fe1c3f372721aa (commit)
from ade6281bfee602253f2d42c8337f5c63373f0429 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit abbb31362b5fee5763cb9afa56fe1c3f372721aa
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Jun 12 14:16:19 2014 -0400
Bugfix searching for cgroup stats files. refs #2882
diff --git a/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go b/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
index 3544e74..0775090 100644
--- a/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
+++ b/services/crunch/crunchstat/src/arvados.org/crunchstat/crunchstat.go
@@ -44,11 +44,11 @@ func OutputChannel(stdout chan string, stderr chan string) {
func FindStat(cgroup_path string, statgroup string, stat string) string {
path := fmt.Sprintf("%s/%s.%s", cgroup_path, statgroup, stat)
- if _, err := os.Stat(path); err != nil {
+ if _, err := os.Stat(path); err == nil {
return path
}
path = fmt.Sprintf("%s/%s/%s.%s", cgroup_path, statgroup, statgroup, stat)
- if _, err := os.Stat(path); err != nil {
+ if _, err := os.Stat(path); err == nil {
return path
}
return ""
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list