Added ploss to SQL db default tip
authorltracy
Tue Apr 07 16:55:42 2009 -0700 (10 months ago)
changeset 43167f236cc1d990
parent 4315 24321b91c50b
Added ploss to SQL db
uan-apps/create-dat.cc
     1.1 --- a/uan-apps/create-dat.cc	Tue Apr 07 16:52:07 2009 -0700
     1.2 +++ b/uan-apps/create-dat.cc	Tue Apr 07 16:55:42 2009 -0700
     1.3 @@ -747,8 +747,8 @@
     1.4  
     1.5                UanPdp pdp = resp.GetPdp();
     1.6                sqlStr.str("");
     1.7 -              sqlStr << "INSERT INTO indextable (srcdepth, recdepth, range, freq) VALUES ("
     1.8 -                     << srcDepth << ", " << recDepth << ", " << range << ", " << freq << ");";
     1.9 +              sqlStr << "INSERT INTO indextable (srcdepth, recdepth, range, freq, ploss) VALUES ("
    1.10 +                     << srcDepth << ", " << recDepth << ", " << range << ", " << freq << ", " << resp.GetPathLossDb() << ");";
    1.11                rc = sqlite3_exec(sqldb, sqlStr.str().c_str(), &sqlCallback, 0, &err);
    1.12                if(rc)
    1.13                  {
    1.14 @@ -799,7 +799,7 @@
    1.15        NS_FATAL_ERROR("Could not open DB: " << dbfile);
    1.16      }
    1.17    sqlStr << "CREATE TABLE indextable (tapid INTEGER PRIMARY KEY AUTOINCREMENT, "
    1.18 -         << "srcdepth INTEGER, recdepth INTEGER, range INTEGER, freq INTEGER);";
    1.19 +         << "srcdepth INTEGER, recdepth INTEGER, range INTEGER, freq INTEGER, ploss DECIMAL);";
    1.20  
    1.21    rc = sqlite3_exec(sqldb, sqlStr.str().c_str(), &sqlCallback, 0, &err);
    1.22    if(rc)