Commit 82138d21 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

change the y-axis unit to bytes in the html graphs

parent 59647bbf
Loading
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -707,7 +707,7 @@ function RAM() {
                max: max_val,
                tickFormatter: function (v, axis) {
                    if (graph.direction == -1)
                        return v + " Word";
                        return v + " bytes";
                    return v;
                },
                invert: graph.direction == 1
@@ -755,7 +755,7 @@ function RAM() {
              var text = 'Score: ' + y;

              if (graph.direction == -1)
                text += " Word";
                text += " bytes";
              text += "<br>";
            
              if (x > 0) {
@@ -774,7 +774,7 @@ function RAM() {
                if (diff === diff) {
                    text += String.fromCharCode(916) + ": " + diff;
                    if (graph.direction == -1)
                        text += " Word";
                        text += " bytes";
                    text += " (" + pdiff + "% " + better + ")<br>";
                }
              }
@@ -816,7 +816,7 @@ function RAM() {

              text += "<a href=\"logs/" + graph.runs[x].logFile + "\">Logfile</a><br>";
            } else {
              text = "RAM requirement: 100000 Word";
              text = "RAM requirement: 400000 bytes";
            }

	    showToolTip(item.pageX, item.pageY, text);
@@ -868,7 +868,7 @@ function ROM() {
                max: max_val,
                tickFormatter: function (v, axis) {
                    if (graph.direction == -1)
                        return v + " Word";
                        return v + " bytes";
                    return v;
                },
                invert: graph.direction == 1
@@ -916,7 +916,7 @@ function ROM() {
              var text = 'Score: ' + y;

              if (graph.direction == -1)
                text += " Word";
                text += " bytes";
              text += "<br>";
            
              if (x > 0) {
@@ -935,7 +935,7 @@ function ROM() {
                if (diff === diff) {
                    text += String.fromCharCode(916) + ": " + diff;
                    if (graph.direction == -1)
                        text += " Word";
                        text += " bytes";
                    text += " (" + pdiff + "% " + better + ")<br>";
                }
              }
@@ -991,7 +991,7 @@ function ROM() {
			  */

            } else {
              text = "ROM requirement: 200 kWord";
              text = "ROM requirement: 800000 bytes";
            }

	    showToolTip(item.pageX, item.pageY, text);