From adc8598ba4b56c724967017d4a6403b0a3350904 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Wed, 20 Jul 2005 19:48:01 +0000
Subject: [PATCH] Do not print time stamp if noheader option is selected.

---
 src/sinfo/sinfo.c   | 3 ++-
 src/squeue/squeue.c | 5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/sinfo/sinfo.c b/src/sinfo/sinfo.c
index e96279853e2..4786f448bf7 100644
--- a/src/sinfo/sinfo.c
+++ b/src/sinfo/sinfo.c
@@ -81,7 +81,8 @@ int main(int argc, char *argv[])
 	parse_command_line(argc, argv);
 
 	while (1) {
-		if ( params.iterate || params.verbose || params.long_output )
+		if ((!params.no_header)
+		&&  (params.iterate || params.verbose || params.long_output))
 			print_date();
 
 		if (params.bgl_flag)
diff --git a/src/squeue/squeue.c b/src/squeue/squeue.c
index d99f0eb484b..03b44545d2f 100644
--- a/src/squeue/squeue.c
+++ b/src/squeue/squeue.c
@@ -1,5 +1,7 @@
 /*****************************************************************************\
  *  squeue.c - Report jobs in the slurm system
+ *
+ *  $Id$
  *****************************************************************************
  *  Copyright (C) 2002 The Regents of the University of California.
  *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
@@ -65,7 +67,8 @@ main (int argc, char *argv[])
 	
 	while (1) 
 	{
-		if ( params.iterate || params.verbose || params.long_list )
+		if ((!params.no_header)
+		 && (params.iterate || params.verbose || params.long_list))
 			_print_date ();
 
 		if ( params.step_flag )
-- 
GitLab