Add last_seen field to regions table
parent
21de921b95
commit
e189b3056f
|
@ -0,0 +1,5 @@
|
|||
BEGIN;
|
||||
|
||||
ALTER TABLE `regions` ADD COLUMN `last_seen` integer NOT NULL DEFAULT 0;
|
||||
|
||||
COMMIT;
|
|
@ -139,6 +139,7 @@ namespace OpenSim.Services.GridService
|
|||
|
||||
try
|
||||
{
|
||||
rdata.Data["last_seen"] = Util.UnixTimeSinceEpoch();
|
||||
m_Database.Store(rdata);
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -164,6 +165,7 @@ namespace OpenSim.Services.GridService
|
|||
int flags = Convert.ToInt32(region.Data["flags"]);
|
||||
flags &= ~(int)OpenSim.Data.RegionFlags.RegionOnline;
|
||||
region.Data["flags"] = flags.ToString();
|
||||
region.Data["last_seen"] = Util.UnixTimeSinceEpoch();
|
||||
try
|
||||
{
|
||||
m_Database.Store(region);
|
||||
|
|
Loading…
Reference in New Issue