You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2010/10/26 21:13:01 UTC

svn commit: r1027689 - /incubator/vcl/trunk/web/js/dashboard.js

Author: jfthomps
Date: Tue Oct 26 19:13:01 2010
New Revision: 1027689

URL: http://svn.apache.org/viewvc?rev=1027689&view=rev
Log:
VCL-399 - add a dashboard where admins can see current state of VCL system

modified timestampToTime - removed some unused code

Modified:
    incubator/vcl/trunk/web/js/dashboard.js

Modified: incubator/vcl/trunk/web/js/dashboard.js
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/js/dashboard.js?rev=1027689&r1=1027688&r2=1027689&view=diff
==============================================================================
--- incubator/vcl/trunk/web/js/dashboard.js (original)
+++ incubator/vcl/trunk/web/js/dashboard.js Tue Oct 26 19:13:01 2010
@@ -190,15 +190,4 @@ function timestampToTime(val) {
 	else
 		var data = dijit.byId('reschart').chart.labeldata;
 	return data[val]['text'];
-	var d = new Date();
-	d.setTime(val*1000);
-	var h = d.getHours();
-	if(h == 0)
-		return "12:" + d.getMinutes() + " am";
-	else if(h < 12)
-		return h + ":" + d.getMinutes() + " am";
-	else if(h == 12)
-		return "12:" + d.getMinutes() + " pm";
-	else
-		return (h - 12) + ":" + d.getMinutes() + "pm";
 }