if(mi->optional_fields_count) {
int i;
for(i = 0; i < mi->optional_fields_count ; i++)
- free(mi->optional_fields[i]);
+ free(*mi->optional_fields[i]);
}
free(mi->optional_fields);
*/
-
free(mi->filesystem);
free(mi->mount_source);
free(mi->super_options);
int i;
for(i = 0; i < mi->optional_fields_count ; i++) {
- mi->optional_fields[wo] = strdup(procfile_lineword(ff, l, w));
+ *mi->optional_fields[wo] = strdup(procfile_lineword(ff, l, w));
if(!mi->optional_fields[wo]) fatal("Cannot allocate memory");
wo++;
}
int optional_fields_count;
/*
- char *(*optional_fields); // optional fields: zero or more fields of the form "tag[:value]".
+ char ***optional_fields; // optional fields: zero or more fields of the form "tag[:value]".
*/
-
char *filesystem; // filesystem type: name of filesystem in the form "type[.subtype]".
uint32_t filesystem_hash;
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" id="current_view">demo sites <strong class="caret"></strong></a>
<ul class="dropdown-menu scrollable-menu inpagemenu" role="menu">
- <li id="demo_eu"><a href="//netdata.firehol.org?nowelcome">EU - London (DigitalOcean.com)</a></li>
+ <li id="demo_eu"><a href="//netdata1.firehol.org?nowelcome">EU - London (DigitalOcean.com)</a></li>
<li id="demo_us"><a href="//netdata2.firehol.org?nowelcome">US - Atlanta (CDN77.com)</a></li>
+ <li id="demo_gr"><a href="//netdata3.firehol.org?nowelcome">EU - Greece</a></li>
<li role="separator" class="divider"></li>
<li id="demo_tv"><a href="tv.html">TV Dashboard for 2 servers</a></li>
<li id="demosites"><a href="demosites.html">Dashboard for monitoring netdata demo sites</a></li>
try {
if(typeof document.location.hostname === 'string') {
- if(document.location.hostname === 'netdata.firehol.org') {
+ if(document.location.hostname === 'netdata.firehol.org' || document.location.hostname === 'netdata1.firehol.org') {
document.getElementById("demo_eu").className = "active";
this_is_demo = true;
}
document.getElementById("demo_us").className = "active";
this_is_demo = true;
}
+ else if(document.location.hostname === 'netdata3.firehol.org') {
+ document.getElementById("demo_gr").className = "active";
+ this_is_demo = true;
+ }
}
if(!this_is_demo)