add gtime to chat data attributes
Costa Tsaousis (ktsaou) committed
Jan 27, 2018 at 20:32 UTC
3b813711c91393969eeaa44b5733352a593864ba
1 file changed
+2
web/dashboard.js
+2
@@ -2778,6 +2778,7 @@ var NETDATA = window.NETDATA || {};
2778
2779
// string - the grouping method requested by the user
2780
that.method = NETDATA.dataAttribute(that.element, 'method', NETDATA.chartDefaults.method);
2781
+ that.gtime = NETDATA.dataAttribute(that.element, 'gtime', 0);
2782
2783
// the time-range requested by the user
2784
that.after = NETDATA.dataAttribute(that.element, 'after', NETDATA.chartDefaults.after);
@@ -4607,6 +4608,7 @@ var NETDATA = window.NETDATA || {};
4608
this.data_url += "&format=" + this.library.format();
4609
this.data_url += "&points=" + (data_points).toString();
4610
this.data_url += "&group=" + this.method;
4611
+ this.data_url += ">ime=" + this.gtime;
4612
this.data_url += "&options=" + this.chartURLOptions();
4613
4614
if(after)