spread parsing gix, Z29 showed up
This commit is contained in:
1 parent
9faee77360
commit
f1df673e61
2 files changed
+18
-6
No files matched your search
Vendored
+6
@@ -165,6 +165,12 @@
|
||||
"externalConsole": true,
|
||||
"requireExactSource": false
|
||||
},
|
||||
{
|
||||
"name": "Client Attach",
|
||||
"type": "clr",
|
||||
"request": "attach",
|
||||
"processId": "${command:pickProcess}"
|
||||
},
|
||||
{
|
||||
"name": ".NET Framework Attach",
|
||||
"type": "clr",
|
||||
|
||||
@@ -200,11 +200,16 @@ namespace bts.history{
|
||||
var exp_map = new SortedDictionary<DateTime,string>();
|
||||
// parse out exp
|
||||
Func<string,DateTime> get_exp = (t) => {
|
||||
Log.assert(t.Count()==4);
|
||||
int month = mmap[t.ElementAt(2).ToString()];
|
||||
int yr = Int32.Parse(t.ElementAt(3).ToString());
|
||||
yr = (yr == 9 ? -1 : yr) + 2020;
|
||||
return new DateTime(yr,month,1);
|
||||
if(t.Count()==4){
|
||||
int month = mmap[t.ElementAt(2).ToString()];
|
||||
int yr = Int32.Parse(t.ElementAt(3).ToString());
|
||||
yr = (yr == 9 ? -1 : yr) + 2020;
|
||||
return new DateTime(yr,month,1);
|
||||
}
|
||||
else{
|
||||
Console.WriteLine("Could not parse {0}",t);
|
||||
return DateTime.MinValue;
|
||||
}
|
||||
};
|
||||
foreach (var s in smap)
|
||||
if(!s.Contains(".")){
|
||||
@@ -215,7 +220,8 @@ namespace bts.history{
|
||||
string sym = t.Substring(0,2);
|
||||
if(sym == symbol){
|
||||
var e = get_exp(t);
|
||||
exp_map[e] = t;
|
||||
if(e != DateTime.MinValue)
|
||||
exp_map[e] = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user