~ubuntu-branches/ubuntu/vivid/numactl/vivid

« back to all changes in this revision

Viewing changes to numactl.c

  • Committer: Package Import Robot
  • Author(s): Ian Wienand
  • Date: 2012-11-15 12:20:29 UTC
  • mfrom: (1.3.9)
  • Revision ID: package-import@ubuntu.com-20121115122029-df53pmew2v1ydcsg
Tags: 2.0.8-1
New upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
static void print_distances(int maxnode)
187
187
{
188
188
        int i,k;
 
189
        int fst = 0;
189
190
 
190
 
        if (numa_distance(maxnode,0) == 0) {
 
191
        for (i = 0; i <= maxnode; i++)
 
192
                if (numa_bitmask_isbitset(numa_nodes_ptr, i)) {
 
193
                        fst = i;
 
194
                        break;
 
195
                }
 
196
        if (numa_distance(maxnode,fst) == 0) {
191
197
                printf("No distance information available.\n");
192
198
                return;
193
199
        }