From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 1/2] ms-* html generation: Provide Date: Mon, 4 Jan 2016 16:49:37 +0000 Message-ID: <1451926178-10812-2-git-send-email-ian.jackson@eu.citrix.com> References: <1451926178-10812-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: <xen-devel-bounces@lists.xen.org> Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <prvs=80467dea4=Ian.Jackson@citrix.com>) id 1aG8KI-0003TS-RL for xen-devel@lists.xenproject.org; Mon, 04 Jan 2016 16:49:46 +0000 In-Reply-To: <1451926178-10812-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: <http://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson <ian.jackson@eu.citrix.com>, Ian Campbell <ian.campbell@citrix.com> List-Id: xen-devel@lists.xenproject.org This means that these browser windows will actually get titles! Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> --- ms-flights-summary | 2 ++ ms-planner | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ms-flights-summary b/ms-flights-summary index ec8fa18..ea72088 100755 --- a/ms-flights-summary +++ b/ms-flights-summary @@ -347,6 +347,8 @@ foreach my $f (keys %flights) { gather_events(); +printf("<html><head><title>Flights - %s\n", + $c{DnsDomain} // '?'); printf("

Report at ".fmttime(time)." based on plan at ".fmttime($plan->{Start})."

\n"); printf("

Overview

\n"); diff --git a/ms-planner b/ms-planner index fc65a5b..7ce0405 100755 --- a/ms-planner +++ b/ms-planner @@ -687,6 +687,9 @@ sub cmd_show_html () { #print DEBUG "==============================\n", # Dumper(\@rows, \@newoutcols); + printf "Resource %s - %s\n", + $walker, ($c{DnsDomain} // '?'); + printf "\n", show_rel_time($now); foreach my $ch (@colheads) { @@ -753,7 +756,7 @@ sub cmd_show_html () { printf "\n"; printf "

\n"; } - printf "Report generated %s.\n", + printf "Report generated %s.\n", strftime("%Y-%b-%d %a %H:%M:%S", localtime $now); die $! if STDOUT->error; die $! unless STDOUT->flush; -- 1.7.10.4

plan age %sreport at %s