dumppmicubed: limit partner freq rank to closed set
diff --git a/dumppmicubed.cc b/dumppmicubed.cc
index 41fd4a3..33f5314 100644
--- a/dumppmicubed.cc
+++ b/dumppmicubed.cc
@@ -25,12 +25,14 @@
   std::cerr << "Database " << argv[1] << " opened\n";
   #pragma omp parallel for schedule(dynamic, 1)
   for(uint32_t i=START; i< STOP; i++) {
-    std::vector<rocksdb::Collocator> cs = cdb.get_collocators(i);
+    std::vector<rocksdb::Collocator> cs = cdb.get_collocators(i, STOP);
     int j=0;
     for (rocksdb::Collocator c : cs) {
-      array[i*20+j] = (uint32_t) c.w2;
-      if(++j >=20)
-        break;
+      if(c.w2 != i) {
+        array[i*20+j] = (uint32_t) c.w2;
+        if(++j >=20)
+          break;
+      }
     }
     if(done++  % 100 == 0) {
       std::cerr <<"\r\033[2K"<<std::flush;