Difficulty " + this.y.toFixed(2) + " H/s";
- },
- useHTML: true
+ borderRadius: 7,
+ borderWidth: 1,
+ shared: false,
+ headerFormat: "",
+ shared: false,
+ headerFormat: "",
},
exporting: {
- enabled: true
+ enabled: false,
},
- series: [{
- color: "#F87217",
- name: "Difficulty",
- data: function () {
- var e, a = [];
- if (null != t) {
- for (e = 0; e <= t.length - 1; e += 1) {
- var n = 0,
- r = 0,
- l = 0;
- r = new Date(1e3 * t[e].x);
- l = r.toLocaleString();
- n = t[e].y; a.push({
- x: r,
- d: l,
- y: n
+ series: [
+ {
+ yAxis: 0,
+ name: "Pool Hashrate",
+ fillColor: "rgba(49, 227, 0, 0.22)",
+ color: "#32e400",
+ tooltip: {
+ pointFormatter: function () {
+ return (
+ formatDate(this.x, "day.month.year hours:minutes") +
+ "
Pool Hashrate: " +
+ formatHashrate(this.y, true) +
+ ""
+ );
+ },
+ },
+ states: {
+ inactive: {
+ opacity: 0.1,
+ },
+ },
+ data: function () {
+ var hashData = [];
+ if (null != t) {
+ t.forEach(function (entry) {
+ var x = new Date(1000 * entry.x);
+ var l = x.toLocaleString();
+ var y = entry.y;
+ hashData.push({ x: x, y: y, d: l });
+ });
+ }
+
+ var l = now.toLocaleString();
+ var y = e.getWithDefault("model.hashrate");
+ var lastHash = { x: now, y: y, d: l };
+ { hashData.push(lastHash); }
+
+ return hashData;
+ }()
+ },
+ {
+ yAxis: 1,
+ name: "NETWORK DIFFICULTY",
+ fillColor: "rgba(212, 175, 55, 0.35)",
+ color: "#007BFF",
+ tooltip: {
+ pointFormatter: function () {
+ return (
+ formatDate(this.x, "day.month.year hours:minutes") +
+ "
NETWORK DIFFICULTY: " +
+ formatNumber(this.y) +
+ ""
+ );
+ },
+ },
+ states: {
+ inactive: {
+ opacity: 0.1,
+ },
+ },
+ data: function () {
+ var netDiffData = [];
+ if (null != netCharts) {
+ netCharts.forEach(function (entry) {
+ var x = new Date(1000 * entry.x);
+ var l = x.toLocaleString();
+ var y = entry.y;
+ netDiffData.push({ x: x, y: y, d: l });
});
}
- } else {
- a.push({
- x: 0,
- d: 0,
- y: 0
- });
- }
- return a;
- }()
- }]
+ return netDiffData;
+ }()
+ },
+ ],
};
return a;
- }
+ },
}),
+
dag: Ember.computed("stats", "model", {
get() {
var percent = (this.get("epoch") * 8192) / 1024 / 1024 + 1;
@@ -296,9 +309,10 @@ export default Ember.Controller.extend({
return percent;
},
}),
+
epoch: Ember.computed("model.stats", {
get() {
- return parseInt(this.get("applicationController.height") / 60000); /* etchash 60000 ethash 30000 */
+ return parseInt(this.get("applicationController.height") / 30000);
},
- })
-});
\ No newline at end of file
+ }),
+});
diff --git a/www/app/templates/index.hbs b/www/app/templates/index.hbs
index e1c1538..3aee771 100644
--- a/www/app/templates/index.hbs
+++ b/www/app/templates/index.hbs
@@ -56,9 +56,6 @@
{{high-charts mode=chartMode chartOptions=chartOptions content=chartData}}
-
- {{high-charts mode=mode chartOptions=chartDiff content=chartData}}
-
{{t "home.query_history"}}
@@ -180,4 +177,4 @@
-
+
\ No newline at end of file
diff --git a/www/translations/en-us.yaml b/www/translations/en-us.yaml
index af4afe5..19e8dfa 100644
--- a/www/translations/en-us.yaml
+++ b/www/translations/en-us.yaml
@@ -41,7 +41,7 @@ home:
payouts_run: every {interval}.
payout_scheme_detail: Real time PPLNS payout scheme.
miners_online: Miners Online
- pool_hashrate: Pool Hash Rate
+ pool_hashrate: Pool Hashrate
pool_fee: Pool Fee
last_block_found: Last Block Found
network_difficulty: Network Difficulty