[Git][NTPsec/ntpsec][master] "Report generated" in ntpviz index.html

Gary E. Miller gitlab at mg.gitlab.com
Tue Aug 23 16:40:42 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
c2f30473 by Gary E. Miller at 2016-08-23T09:39:56-07:00
"Report generated" in ntpviz index.html

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -543,10 +543,12 @@ if __name__ == '__main__':
 <div>
 <h1 style="margin-bottom:10px;">NTP Stats</h1>
 '''
+    index_header += 'Report generated: %s UTC <br>' \
+                     %  posix_to_iso(stats.starttime)
     # Ugh.  Not clear what to do in the multiplot case
     if len(statlist) == 1:
-        index_header += 'Last Update: %s UTC <br>' % posix_to_iso(stats.starttime)
-        index_header += 'Period: %s days <br></div> ' % int(stats.period // NTPStats.SecondsInWeek)
+        index_header += 'Period: %s days <br></div> ' \
+                 % int(stats.period // NTPStats.SecondsInWeek)
     index_header += '<div style="clear:both;"></div>'
 
     index_trailer = '''\
@@ -559,7 +561,7 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
 </div>
 <div style="float:left;margin-left:350px;">
     <a href="https://validator.w3.org/nu/">
-    <img src="https://www.w3.org/html/logo/downloads/HTML5_Logo_32.png" 
+    <img src="https://www.w3.org/html/logo/downloads/HTML5_Logo_32.png"
         alt="html 5">
     </a>
   



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c2f304731bd819fd8294538d3ac2dab79fab6903
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160823/ea64004d/attachment.html>


More information about the vc mailing list