hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r732639 - in /hadoop/core/trunk: CHANGES.txt src/contrib/chukwa/src/web/hicc/js/flot.extend.js
Date Thu, 08 Jan 2009 08:26:01 GMT
Author: cdouglas
Date: Thu Jan  8 00:26:01 2009
New Revision: 732639

URL: http://svn.apache.org/viewvc?rev=732639&view=rev
Log:
HADOOP-4884. Make tool tip date format match standard HICC format. Contributed by Eric Yang.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/flot.extend.js

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=732639&r1=732638&r2=732639&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Thu Jan  8 00:26:01 2009
@@ -552,6 +552,9 @@
     HADOOP-4914. Add description fields to Chukwa init.d scripts (Eric Yang via
     cdouglas)
 
+    HADOOP-4884. Make tool tip date format match standard HICC format. (Eric
+    Yang via cdouglas)
+
 Release 0.19.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/flot.extend.js
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/flot.extend.js?rev=732639&r1=732638&r2=732639&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/flot.extend.js (original)
+++ hadoop/core/trunk/src/contrib/chukwa/src/web/hicc/js/flot.extend.js Thu Jan  8 00:26:01
2009
@@ -26,7 +26,7 @@
 
 options={
         points: { show: true },
-        xaxis: {                timeformat: "%D/%O/%y<br/>%H:%M:%S",
+        xaxis: {                timeformat: "%y/%O/%D<br/>%H:%M:%S",
                 mode: "time"
         },
         selection: { mode: "xy" },
@@ -52,10 +52,9 @@
                     $("#tooltip").remove();
                     var x = item.datapoint[0].toFixed(2),
                          y = item.stackValue.toFixed(2);
-//item.datapoint[1].toFixed(2);
                     var dnow=new Date();
                     dnow.setTime(x);
-	            var dita=leftPad(dnow.getUTCDate())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCFullYear()+"
"+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
+	            var dita=leftPad(dnow.getUTCFullYear())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCDate()+"
"+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
  
                     showTooltip(item.pageX, item.pageY,
                                 item.series.label + ": " + y + "<br>Time: " + dita);
@@ -79,7 +78,7 @@
                          y = item.datapoint[1].toFixed(2);
                     var dnow=new Date();
                     dnow.setTime(x);
-	            var dita=leftPad(dnow.getUTCDate())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCFullYear()+"
"+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
+	            var dita=leftPad(dnow.getUTCFullYear())+"/"+leftPad(dnow.getUTCMonth()+1)+"/"+dnow.getUTCDate()+"
"+leftPad(dnow.getUTCHours())+":"+leftPad(dnow.getUTCMinutes())+":"+leftPad(dnow.getUTCSeconds());
  
                     showTooltip(item.pageX, item.pageY,
                                 item.series.label + ": " + y + "<br>Time: " + dita);



Mime
View raw message