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";
 }


Reply via email to