[ONOS-7340]: Add 'Last Updated' Date to All TestON Result Wiki Graphs
Change-Id: I73f49a8b9a8c1e255aab7ac74d017b3b74bd29eb
diff --git a/TestON/JenkinsFile/scripts/SCPFswitchLat.R b/TestON/JenkinsFile/scripts/SCPFswitchLat.R
index de506a3..3535a5a 100644
--- a/TestON/JenkinsFile/scripts/SCPFswitchLat.R
+++ b/TestON/JenkinsFile/scripts/SCPFswitchLat.R
@@ -256,7 +256,10 @@
legend.position = "bottom",
legend.text = element_text( size = 22 ),
legend.title = element_blank(),
- legend.key.size = unit( 1.5, 'lines' ) )
+ legend.key.size = unit( 1.5, 'lines' ),
+ plot.subtitle = element_text( size=16, hjust=1.0 ) )
+
+subtitle <- paste( "Last Updated: ", format( Sys.time(), format = "%b %d, %Y at %I:%M %p %Z" ), sep="" )
# ----------------------------
# Switch Up Generate Main Plot
@@ -276,7 +279,7 @@
print( "Generating fundamental graph data (Switch Up Latency)." )
-title <- ggtitle( "Switch Up Latency" )
+title <- labs( title = "Switch Up Latency", subtitle = subtitle )
fundamentalGraphData <- mainPlot +
xScaleConfig +
@@ -352,7 +355,7 @@
"#619DFA", # Blue
"#18BA48" ) ) # Green
-title <- ggtitle( "Switch Down Latency" )
+title <- labs( title = "Switch Down Latency", subtitle = subtitle )
fundamentalGraphData <- mainPlot +
xScaleConfig +