Skip to content
Snippets Groups Projects
Commit c6fdccb0 authored by tewk's avatar tewk
Browse files

node_info stuff

parent 8d7573d9
No related branches found
No related tags found
No related merge requests found
...@@ -52,13 +52,14 @@ main (int argc, char *argv[]) ...@@ -52,13 +52,14 @@ main (int argc, char *argv[])
static time_t last_update_time = (time_t) NULL; static time_t last_update_time = (time_t) NULL;
int error_code, i; int error_code, i;
node_info_msg_t * node_info_msg_ptr = NULL; node_info_msg_t * node_info_msg_ptr = NULL;
node_table_t * node_ptr = node_info_msg_ptr -> node_array ; node_table_t * node_ptr;
error_code = slurm_load_node (last_update_time, &node_info_msg_ptr); error_code = slurm_load_node (last_update_time, &node_info_msg_ptr);
if (error_code) { if (error_code) {
printf ("slurm_load_node error %d\n", error_code); printf ("slurm_load_node error %d\n", error_code);
exit (error_code); exit (error_code);
} }
node_ptr = node_info_msg_ptr -> node_array ;
printf("Nodes updated at %d, record count %d\n", printf("Nodes updated at %d, record count %d\n",
node_info_msg_ptr ->last_update, node_info_msg_ptr->record_count); node_info_msg_ptr ->last_update, node_info_msg_ptr->record_count);
...@@ -75,7 +76,7 @@ main (int argc, char *argv[]) ...@@ -75,7 +76,7 @@ main (int argc, char *argv[])
printf ("skipping...\n"); printf ("skipping...\n");
} }
slurm_free_node_info ( node_info_msg_ptr ) ; //slurm_free_node_info ( node_info_msg_ptr ) ;
exit (0); exit (0);
} }
#endif #endif
......
...@@ -25,16 +25,16 @@ main (int argc, char *argv[]) ...@@ -25,16 +25,16 @@ main (int argc, char *argv[])
int error_code ; int error_code ;
partition_info_msg_t * part_info_ptr = NULL; partition_info_msg_t * part_info_ptr = NULL;
error_code = slurm_load_partition_info (last_update_time, &part_buffer_ptr); error_code = slurm_load_partitions (last_update_time, &part_info_ptr);
if (error_code) { if (error_code) {
printf ("slurm_load_part error %d\n", error_code); printf ("slurm_load_part error %d\n", error_code);
exit (error_code); exit (error_code);
} }
printf("Updated at %lx, record count %d\n", printf("Updated at %lx, record count %d\n",
part_buffer_ptr->last_update, part_buffer_ptr->part_count); (time_t) part_info_ptr->last_update, part_info_ptr->record_count);
slurm_print_partition_info ( part_info_ptr ) ;
slurm_free_partition_info (part_buffer_ptr); slurm_free_partition_info (part_info_ptr);
exit (0); exit (0);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment