Commit 2ecf8fee authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add more digits to the right of the decimal point when displaying

lossrate and rlossrate from virt_lans table. The lack of digits adds
too much roundoff error, which causes linktest to falsely report
errors when plr is low.
parent a45b1760
......@@ -2170,7 +2170,7 @@ CREATE TABLE virt_lans (
delay float(10,2) default '0.00',
bandwidth int(10) unsigned default NULL,
est_bandwidth int(10) unsigned default NULL,
lossrate float(10,3) default NULL,
lossrate float(10,5) default NULL,
q_limit int(11) default '0',
q_maxthresh int(11) default '0',
q_minthresh int(11) default '0',
......@@ -2189,7 +2189,7 @@ CREATE TABLE virt_lans (
rdelay float(10,2) default NULL,
rbandwidth int(10) unsigned default NULL,
rest_bandwidth int(10) unsigned default NULL,
rlossrate float(10,3) default NULL,
rlossrate float(10,5) default NULL,
cost float NOT NULL default '1',
widearea tinyint(4) default '0',
emulated tinyint(4) default '0',
......
......@@ -2903,3 +2903,10 @@ last_net_act,last_cpu_act,last_ext_act);
after imageid;
alter table experiments add savedisk tinyint(1) NOT NULL default 0 \
after delay_capacity;
4.20: Add more digits to display when retrieving the lossrate from
virt_lans.
alter table virt_lans change lossrate lossrate float(10,5) default NULL;
alter table virt_lans change rlossrate rlossrate float(10,5) default NULL;
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