Commit cc9e8c30 authored by Ziwen Su's avatar Ziwen Su

Adjusted the Json file structure to prepare for the subsequent optimization work.

parent b7a6e984
...@@ -47,10 +47,9 @@ export class MonitoringService { ...@@ -47,10 +47,9 @@ export class MonitoringService {
start_date.setDate(start_date.getDate() - 7); start_date.setDate(start_date.getDate() - 7);
var end_date = new Date(); var end_date = new Date();
// for testing // for testing
// start_date = new Date(1575291600000); // start_date = new Date(1575331200000);
// var end_date = new Date(1575896400000); // var end_date = new Date(1575763200000);
this.global_range_dates = [ start_date, end_date ]; this.global_range_dates = [ start_date, end_date ];
...@@ -340,9 +339,8 @@ export class MonitoringService { ...@@ -340,9 +339,8 @@ export class MonitoringService {
getDetailedFootprints() { getDetailedFootprints() {
return this.show_detailed_footprints; return this.show_detailed_footprints;
} }
getPartitions(){ getPartitions(){
return this.appConfig.getConfig().AppConfig.partition_list; return this.appConfig.getConfig().Partition_list.name;
} }
} }
{ {
"AppConfig": { "AppConfig": {
"backend_url": "http://localhost/php/", "backend_url": "http://localhost/php/",
"footprint_url": "https://hpcmon.zih.tu-dresden.de/", "footprint_url": "https://hpcmon.zih.tu-dresden.de/"
"partition_list":["broadwell", "gpu", "haswell", "hpdlf", "ifm", "interactive", "ml", "nvme", "romeo", "sandy", "sl", "smp", "test", "triton", "vis", "west"] },
} "Partition_list":{
} "name": ["broadwell", "gpu", "haswell", "hpdlf", "ifm", "interactive", "ml", "nvme", "romeo", "sandy", "sl", "smp", "test", "triton", "vis", "west"]
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment