// Check end of project - only take the integer portion override public bool ParseLine(FahLogParser flp, string Line) { Match m = Regex.Match(Line, time_regx + fsws_regx + cred); if (m.Success) { flp.EndProject(int.Parse(m.Groups["wu_slot"].Value), int.Parse(m.Groups["f_slot"].Value), m.Groups["credit"].Value); } return(m.Success); }
override public bool ParseLine(FahLogParser flp, string Line) { Match m = Regex.Match(Line, time_regx + "WARNING:" + fsws_regx + dumping); if (m.Success) { Console.WriteLine("LN:{0}:BADWU(): Server did not like results - wu_slot {1} - f_slot {2}.", flp.LineNumber, m.Groups["wu_slot"].Value, m.Groups["f_slot"].Value); flp.EndProject(int.Parse(m.Groups["wu_slot"].Value), int.Parse(m.Groups["f_slot"].Value), "-1"); //TODO: cheesy for now } return(m.Success); }