• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OmegaChartのソースコードの保守


Commit MetaInfo

Revisione328f6c07980bbc381303569c39f6c4168dc9885 (tree)
Time2016-09-08 01:16:24
Authorpanacoran <panacoran@user...>
Commiterpanacoran

Log Message

無尽蔵のデータ中の無効な数字を読み飛ばす

Change Summary

Incremental Difference

--- a/Mujinzou.cs
+++ b/Mujinzou.cs
@@ -102,14 +102,18 @@ namespace Zanetti.DataSource.Specialized {
102102 }
103103
104104 NewDailyData td = new NewDailyData();
105- td.volume = (int)(Double.Parse(t[8]) * vv);
106- NewDailyData existing = (NewDailyData)result[code];
107- //Debug.WriteLine(line);
108- td.open = (int)(Double.Parse(t[4]) * pv);
109- td.high = (int)(Double.Parse(t[5]) * pv);
110- td.low = (int)(Double.Parse(t[6]) * pv);
111- td.close= (int)(Double.Parse(t[7]) * pv);
112- result[code] = td;
105+ try {
106+ td.volume = (int)(Double.Parse(t[8]) * vv);
107+ NewDailyData existing = (NewDailyData)result[code];
108+ //Debug.WriteLine(line);
109+ td.open = (int)(Double.Parse(t[4]) * pv);
110+ td.high = (int)(Double.Parse(t[5]) * pv);
111+ td.low = (int)(Double.Parse(t[6]) * pv);
112+ td.close = (int)(Double.Parse(t[7]) * pv);
113+ }
114+ catch (FormatException) {
115+ }
116+ result[code] = td;
113117 }
114118 }
115119 line = r.ReadLine();