Permalink
Browse files

Merge pull request #228 from hpc/dcmp-interface

update dcmp interface
  • Loading branch information...
dsikich committed Feb 8, 2019
2 parents 1432eb4 + 44c1b11 commit 7d2ca2fda2fbbe3fef3266ac339ba7bc261b7d2f
Showing with 14 additions and 3 deletions.
  1. +14 −3 src/dcmp/dcmp.c
@@ -1536,8 +1536,19 @@ static void dcmp_disjunction_print(
linkage) {
dcmp_conjunction_print(conjunction, simple);

printf(": [%lu/%lu]", mfu_flist_global_size(conjunction->src_matched_list),
mfu_flist_global_size(conjunction->dst_matched_list));
int size_src_matched = mfu_flist_global_size(conjunction->src_matched_list);
int size_dst_matched = mfu_flist_global_size(conjunction->dst_matched_list);

/* if src and dst don't match src and dest numbers need to
* be reported seperately */
if (size_src_matched == size_dst_matched) {
printf(": %lu (Src: %lu Dest: %lu)", size_src_matched,
size_src_matched, size_dst_matched);
} else {
printf(": N/A (Src: %lu Dest: %lu)", size_src_matched,
size_dst_matched);
}

if (conjunction->linkage.next != &disjunction->conjunctions) {

if (simple) {
@@ -1687,7 +1698,7 @@ static int dcmp_output_flist_match(
return 0;
}

#define DCMP_OUTPUT_PREFIX "Files which "
#define DCMP_OUTPUT_PREFIX "Number of files that "

static int dcmp_output_write(
struct dcmp_output *output,

0 comments on commit 7d2ca2f

Please sign in to comment.