From 0e0f2704b3f40c01d0f389c26d6253389cfea0e3 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 11 May 2022 20:02:45 +0800 Subject: [PATCH] fix graphql query (#84) --- src/graphql/fragments/ebpf.ts | 4 ++-- src/locales/lang/en.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphql/fragments/ebpf.ts b/src/graphql/fragments/ebpf.ts index 4a80777a..7479b623 100644 --- a/src/graphql/fragments/ebpf.ts +++ b/src/graphql/fragments/ebpf.ts @@ -48,9 +48,9 @@ export const queryEBPFTasks = { }`, }; export const queryEBPFSchedules = { - variable: "$taskId: ID!, $duration: Duration!", + variable: "$taskId: ID!", query: ` - eBPFSchedules: queryEBPFProfilingSchedules(taskId: $taskId, duration: $duration) { + eBPFSchedules: queryEBPFProfilingSchedules(taskId: $taskId) { scheduleId taskId process { diff --git a/src/locales/lang/en.ts b/src/locales/lang/en.ts index 9bed54dc..b04edd50 100644 --- a/src/locales/lang/en.ts +++ b/src/locales/lang/en.ts @@ -134,7 +134,7 @@ const msg = { taskId: "Task ID", triggerType: "Trigger Type", targetType: "Target Type", - ebpfTip: "Don't have process could profiling", + ebpfTip: "Don't have a process for profiling", processSelect: "Click to select processes", hourTip: "Select Hour", minuteTip: "Select Minute",