Skip to content
Snippets Groups Projects
Commit aa55a6f4 authored by Moe Jette's avatar Moe Jette
Browse files

Reset time of last node table update when a job deallocates nodes.

parent a2e91509
No related branches found
No related tags found
No related merge requests found
...@@ -159,6 +159,7 @@ main (int argc, char *argv[]) ...@@ -159,6 +159,7 @@ main (int argc, char *argv[])
* this is a simple prototype for testing * this is a simple prototype for testing
* globals: node_record_count - number of nodes in the system * globals: node_record_count - number of nodes in the system
* node_record_table_ptr - pointer to global node table * node_record_table_ptr - pointer to global node table
* last_node_update - last update time of node table
*/ */
void void
allocate_nodes (unsigned *bitmap) allocate_nodes (unsigned *bitmap)
...@@ -209,6 +210,8 @@ deallocate_nodes (unsigned *bitmap) ...@@ -209,6 +210,8 @@ deallocate_nodes (unsigned *bitmap)
{ {
int i; int i;
last_node_update = time (NULL);
for (i = 0; i < node_record_count; i++) { for (i = 0; i < node_record_count; i++) {
if (bit_test (bitmap, i) == 0) if (bit_test (bitmap, i) == 0)
continue; continue;
......
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