fixed a bug with start time display

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401916
This commit is contained in:
David Anderson 2008-03-02 07:28:24 +00:00
parent 0d9f3fb417
commit c6dd96e201

View File

@ -77,10 +77,12 @@ namespace profviewer
{
if (xml.Name.CompareTo("profile") == 0)
{
int t;
in_profile = true;
m_duration = Double.Parse(xml.GetAttribute("uptime"));
m_start_time = new DateTime(1970, 1, 1, 0, 0, 0);
m_start_time.AddSeconds(Int32.Parse(xml.GetAttribute("time")));
t = Int32.Parse(xml.GetAttribute("time"));
m_start_time = m_start_time.AddSeconds(t);
}
else if (in_profile)
{