public void SetSeconds(PDPType pdpType) { if (pdpType == PDPType.CTRE) { Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 39) / 50; } else if (pdpType == PDPType.REV) { Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 47) / 50; } else if (pdpType == PDPType.None) { Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 15) / 50; } else { Seconds = ((new FileInfo(FilePath + "\\" + Name + ".dslog").Length - 19) / 43) / 50; // Take the average because it is close enough } }
protected override void ReadMetadata() { base.ReadMetadata(); StartingPDPType = (Version == 4) ? ParsePDPType() : PDPType.Unknown; }