Subversion Repositories Games.Chess Giants

Rev

Rev 154 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 156
Line 468... Line 468...
468
        total_nodes = block[0]->nodes_searched;
468
        total_nodes = block[0]->nodes_searched;
469
        for (t = 0; t < smp_max_threads; t++)
469
        for (t = 0; t < smp_max_threads; t++)
470
          for (i = 0; i < 64; i++)
470
          for (i = 0; i < 64; i++)
471
            if (!(thread[t].blocks & SetMask(i)))
471
            if (!(thread[t].blocks & SetMask(i)))
472
              total_nodes += block[t * 64 + 1 + i]->nodes_searched;
472
              total_nodes += block[t * 64 + 1 + i]->nodes_searched;
473
        nodes_per_second = total_nodes * 100 / Max(end_time - start_time, 1);
473
        nodes_per_second = (unsigned int) (total_nodes * 100 / Max(end_time - start_time, 1)); // Pierre-Marie Baty -- added type cast
474
        i = strlen(mytree->root_move_text);
474
        i = strlen(mytree->root_move_text);
475
        i = (i < 8) ? i : 8;
475
        i = (i < 8) ? i : 8;
476
        strncat(mytree->root_move_text, "          ", 8 - i);
476
        strncat(mytree->root_move_text, "          ", 8 - i);
477
        printf("%s", mytree->root_move_text);
477
        printf("%s", mytree->root_move_text);
478
        printf("(%snps)             \r", DisplayKMB(nodes_per_second, 0));
478
        printf("(%snps)             \r", DisplayKMB(nodes_per_second, 0));