From 66cc937220b3c9af7a879af9fca273f2d8893de1 Mon Sep 17 00:00:00 2001 From: eric bryant Date: Sat, 23 Jan 2021 16:24:58 -0500 Subject: [PATCH 1/2] New web server directory see e30cdcf493b0e4897e095b536a0fd73d55589895 --- siteupdate/cplusplus/localupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siteupdate/cplusplus/localupdate.sh b/siteupdate/cplusplus/localupdate.sh index f3774cd8..a352c0b9 100755 --- a/siteupdate/cplusplus/localupdate.sh +++ b/siteupdate/cplusplus/localupdate.sh @@ -9,7 +9,7 @@ install=1 pull=1 execdir=`pwd` tmbase=$HOME/travelmapping -tmwebbase=/home/www/tm +tmwebbase=/fast/www/tm tmpdir=/home/tmp/tm datestr=`date '+%Y-%m-%d@%H:%M:%S'` logdir=logs From f6740874af4dfca69372a6c2a7269e45f4fd5463 Mon Sep 17 00:00:00 2001 From: eric bryant Date: Sat, 23 Jan 2021 19:04:26 -0500 Subject: [PATCH 2/2] system CSV bugfix for #402 --- .../cplusplus/classes/HighwaySystem/HighwaySystem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp b/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp index f8c41797..64ba734b 100644 --- a/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp +++ b/siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp @@ -60,9 +60,9 @@ HighwaySystem::HighwaySystem( if (!file) el.add_error("Could not open "+path+"/"+systemname+".csv"); else { getline(file, line); // ignore header line while(getline(file, line)) - { // trim DOS newlines & trailing whitespace + { if (line.empty()) continue; + // trim DOS newlines & trailing whitespace while ( strchr("\r\t ", line.back()) ) line.pop_back(); - if (line.empty()) continue; Route* r = new Route(line, this, el, region_hash); // deleted on termination of program if (r->root.size()) route_list.push_back(r); @@ -78,9 +78,9 @@ HighwaySystem::HighwaySystem( if (!file) el.add_error("Could not open "+path+"/"+systemname+"_con.csv"); else { getline(file, line); // ignore header line while(getline(file, line)) - { // trim DOS newlines & trailing whitespace + { if (line.empty()) continue; + // trim DOS newlines & trailing whitespace while ( strchr("\r\t ", line.back()) ) line.pop_back(); - if (line.empty()) continue; con_route_list.push_back(new ConnectedRoute(line, this, el)); // deleted on termination of program }