Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
e7841cb6
Commit
e7841cb6
authored
Apr 06, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正 timegrid的time 不再是 数据包的第1个时间。 它是数据包的最个一个数据时间
parent
3444bd33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
FlyAD7.cs
Project.FLY.FlyADBase/FlyADBase/FlyAD7.cs
+2
-2
GM_Fix.cs
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Fix.cs
+3
-3
No files found.
Project.FLY.FlyADBase/FlyADBase/FlyAD7.cs
View file @
e7841cb6
...
...
@@ -802,8 +802,8 @@ namespace FlyADBase
advPushTimeGrid
(
dt
,
data
);
double
ts_ms
=
1.28
;
long
ticks
=
(
long
)((
ts_ms
*
data
.
Length
)
*
TimeSpan
.
TicksPerMillisecond
);
dt
-=
TimeSpan
.
FromTicks
(
ticks
);
//
long ticks = (long)((ts_ms * data.Length) * TimeSpan.TicksPerMillisecond);
//
dt -= TimeSpan.FromTicks(ticks);
TimeGridEvent
?.
Invoke
(
this
,
...
...
Project.FLY.Thick.Base/FLY.Thick.Base/Server/GM_Fix.cs
View file @
e7841cb6
...
...
@@ -56,7 +56,7 @@ namespace FLY.Thick.Base.Server
/// 1s 的AD值,就只是用来显示到主界面左上面角而已 DynArea.AD
/// </summary>
List
<
int
>
Data1s
=
new
List
<
int
>();
void
flyad_TimeGridEvent
(
object
sender
,
FlyADBase
.
TimeGridEventArgs
e
)
{
...
...
@@ -64,7 +64,7 @@ namespace FLY.Thick.Base.Server
TimeSpan
ts
=
e
.
Ts
;
var
datas
=
e
.
Data
.
ToArray
();
//1秒数据
//1秒数据
, 大概而已
Data1s
.
AddRange
(
datas
);
if
(
TimeSpan
.
FromTicks
(
Data1s
.
Count
*
ts
.
Ticks
)
>=
TimeSpan
.
FromSeconds
(
1
))
{
...
...
@@ -84,7 +84,7 @@ namespace FLY.Thick.Base.Server
ADs
=
datas
,
thicks
=
thks
,
time
=
dt
,
ts
=
TimeGridAdvHelperExt
.
ad_
ts
ts
=
ts
};
UpdateTime
=
dt
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment