Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai-api-mgr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Odysseus
ai-api-mgr
Commits
9e1418ed
Commit
9e1418ed
authored
Mar 05, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proof finish time as int64
parent
69353925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
main.go
main.go
+5
-4
No files found.
main.go
View file @
9e1418ed
...
@@ -550,8 +550,8 @@ func batchToQuestDb(done chan interface{}, reqStream chan pbUpstream.TaskContent
...
@@ -550,8 +550,8 @@ func batchToQuestDb(done chan interface{}, reqStream chan pbUpstream.TaskContent
// TaskProfitAccount string
// TaskProfitAccount string
// TaskWorkerAccount string
// TaskWorkerAccount string
nanoseconds
:=
int64
(
proof
.
TaskFinishTimestamp
)
//
nanoseconds := int64(proof.TaskFinishTimestamp)
seconds
:=
nanoseconds
/
1e9
//
seconds := nanoseconds / 1e9
for
{
for
{
...
@@ -559,7 +559,8 @@ func batchToQuestDb(done chan interface{}, reqStream chan pbUpstream.TaskContent
...
@@ -559,7 +559,8 @@ func batchToQuestDb(done chan interface{}, reqStream chan pbUpstream.TaskContent
Table
(
proofTableName
)
.
Table
(
proofTableName
)
.
Symbol
(
"TaskType"
,
fmt
.
Sprintf
(
"%d"
,
proof
.
TaskType
))
.
Symbol
(
"TaskType"
,
fmt
.
Sprintf
(
"%d"
,
proof
.
TaskType
))
.
StringColumn
(
"TaskId"
,
proof
.
TaskId
)
.
StringColumn
(
"TaskId"
,
proof
.
TaskId
)
.
TimestampColumn
(
"TaskFinishTimestamp"
,
time
.
Unix
(
seconds
,
nanoseconds
%
1e9
))
.
Int64Column
(
"TaskFinishTimestamp"
,
int64
(
proof
.
TaskFinishTimestamp
))
.
//TimestampColumn("TaskFinishTimestamp", time.Unix(seconds, nanoseconds%1e9)).
Int64Column
(
"TaskWorkload"
,
int64
(
proof
.
TaskWorkload
))
.
Int64Column
(
"TaskWorkload"
,
int64
(
proof
.
TaskWorkload
))
.
StringColumn
(
"TaskReqHash"
,
proof
.
TaskReqHash
)
.
StringColumn
(
"TaskReqHash"
,
proof
.
TaskReqHash
)
.
StringColumn
(
"TaskRespHash"
,
proof
.
TaskRespHash
)
.
StringColumn
(
"TaskRespHash"
,
proof
.
TaskRespHash
)
.
...
@@ -711,7 +712,7 @@ func main() {
...
@@ -711,7 +712,7 @@ func main() {
flag
.
StringVar
(
&
aigcProduceTopic
,
"aigcProduceTopic"
,
"pbaigc"
,
"produce topic, default value is: pbaigc"
)
flag
.
StringVar
(
&
aigcProduceTopic
,
"aigcProduceTopic"
,
"pbaigc"
,
"produce topic, default value is: pbaigc"
)
flag
.
StringVar
(
&
aigcTaskreceiptTopic
,
"aigcTaskreceiptTopic"
,
"taskreceipt"
,
"consumer topic, default value is: taskreceipt"
)
flag
.
StringVar
(
&
aigcTaskreceiptTopic
,
"aigcTaskreceiptTopic"
,
"taskreceipt"
,
"consumer topic, default value is: taskreceipt"
)
flag
.
StringVar
(
&
aigcTaskProof
,
"aigcTaskProof"
,
"taskproof"
,
"TaskProof topic, default value is:
aigc
TaskProof"
)
flag
.
StringVar
(
&
aigcTaskProof
,
"aigcTaskProof"
,
"taskproof"
,
"TaskProof topic, default value is: TaskProof"
)
flag
.
BoolVar
(
&
withBillDb
,
"withbilldb"
,
true
,
"enable with bill db, or simulate"
)
flag
.
BoolVar
(
&
withBillDb
,
"withbilldb"
,
true
,
"enable with bill db, or simulate"
)
...
...
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