From d6312d7317bb3ea8dc9da35a7a979e41aec8ca1a Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 18 May 2009 21:16:54 +0000 Subject: [PATCH] Tweak output of scontrol show config for SuspendTime to be NONE if node suspend/resume is disabled. --- src/api/config_info.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/config_info.c b/src/api/config_info.c index b3120aa8daf..c75bf034977 100644 --- a/src/api/config_info.c +++ b/src/api/config_info.c @@ -429,8 +429,12 @@ void slurm_print_ctl_conf ( FILE* out, slurm_ctl_conf_ptr->suspend_program); fprintf(out, "SuspendRate = %u\n", slurm_ctl_conf_ptr->suspend_rate); - fprintf(out, "SuspendTime = %d sec\n", - ((int)slurm_ctl_conf_ptr->suspend_time - 1)); + if (slurm_ctl_conf_ptr->suspend_time == 0) { + fprintf(out, "SuspendTime = NONE\n"); + } else { + fprintf(out, "SuspendTime = %d sec\n", + ((int)slurm_ctl_conf_ptr->suspend_time - 1)); + } fprintf(out, "SuspendTimeout = %u sec\n", slurm_ctl_conf_ptr->suspend_timeout); fprintf(out, "SwitchType = %s\n", -- GitLab