changeset 16:5a9b33dcdb2c default tip

Show how many samples as well as when the last sample was.
author Daniel O'Connor <darius@dons.net.au>
date Fri, 31 May 2013 13:36:26 +0930
parents ebf411c89a3d
children
files static/iwws.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/static/iwws.js	Fri May 31 13:35:56 2013 +0930
+++ b/static/iwws.js	Fri May 31 13:36:26 2013 +0930
@@ -128,8 +128,8 @@
 	   });
     // Reverse tzofs calculation as Date does local time
     var dobj = new Date(datacache['lastdata'] * 1000.0);
-    $('#stamp').html(sprintf("Last data: %02d/%02d/%02d %02d:%02d:%02d", dobj.getFullYear(), dobj.getMonth() + 1, dobj.getDate(),
-			     dobj.getHours(), dobj.getMinutes(), dobj.getSeconds()));
+    $('#stamp').html(sprintf("Last data: %04d/%02d/%02d %02d:%02d:%02d (%d samples)", dobj.getFullYear(), dobj.getMonth() + 1, dobj.getDate(),
+			     dobj.getHours(), dobj.getMinutes(), dobj.getSeconds(), datacache['idx'].length));
 }
 
 function wind2angle(dir) {