예제 #1
0
 void printCubeEntry(const lintel::StatsCube<Key>::MyAny &atuple, const Stats &val) {
     double bytes = val.mean() * val.countll();
     if (bytes < min_bytes) {
         return;
     }
     cout << format("%8s:%-5s %8s:%-5s %5s %d packets %.2f MiB\n") 
             % host32Str(atuple.data.get<0>(), atuple.any[0])
             % int32Str(atuple.data.get<1>(), atuple.any[1]) 
             % host32Str(atuple.data.get<2>(), atuple.any[2])
             % int32Str(atuple.data.get<3>(), atuple.any[3]) 
             % tuoStr(atuple.data.get<4>(), atuple.any[4])
             % val.countll() % (val.mean() * val.countll() / (1024.0*1024));
 }
예제 #2
0
 void addCubeStat(const Stats &val) {
     bytes_stat->add(val.mean() * val.countll());
 }