From aa55a6f41e216f26e92dcfe8dfbc3b18d5bc996d Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Fri, 12 Jul 2002 19:05:58 +0000 Subject: [PATCH] Reset time of last node table update when a job deallocates nodes. --- src/slurmctld/node_scheduler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slurmctld/node_scheduler.c b/src/slurmctld/node_scheduler.c index c997ceb69d1..7dcf0bc7e23 100644 --- a/src/slurmctld/node_scheduler.c +++ b/src/slurmctld/node_scheduler.c @@ -159,6 +159,7 @@ main (int argc, char *argv[]) * this is a simple prototype for testing * globals: node_record_count - number of nodes in the system * node_record_table_ptr - pointer to global node table + * last_node_update - last update time of node table */ void allocate_nodes (unsigned *bitmap) @@ -209,6 +210,8 @@ deallocate_nodes (unsigned *bitmap) { int i; + last_node_update = time (NULL); + for (i = 0; i < node_record_count; i++) { if (bit_test (bitmap, i) == 0) continue; -- GitLab