From 4d6f038b3f4bd49bfb5b1689c45ba5386a1c731e Mon Sep 17 00:00:00 2001 From: sawka Date: Thu, 19 Sep 2024 11:39:43 -0700 Subject: [PATCH] set apptype = legacy --- wavesrv/pkg/pcloud/pcloud.go | 9 ++++++++- wavesrv/pkg/pcloud/pclouddata.go | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wavesrv/pkg/pcloud/pcloud.go b/wavesrv/pkg/pcloud/pcloud.go index f599ed108..40a9c87fe 100644 --- a/wavesrv/pkg/pcloud/pcloud.go +++ b/wavesrv/pkg/pcloud/pcloud.go @@ -167,7 +167,14 @@ func SendTelemetry(ctx context.Context, force bool) error { log.Printf("[pcloud] sending telemetry data\n") dayStr := telemetry.GetCurDayStr() defaultShellType := shellapi.DetectLocalShellType() - input := TelemetryInputType{UserId: clientData.UserId, ClientId: clientData.ClientId, CurDay: dayStr, DefaultShell: defaultShellType, Activity: activity} + input := TelemetryInputType{ + UserId: clientData.UserId, + ClientId: clientData.ClientId, + AppType: "legacy", + CurDay: dayStr, + DefaultShell: defaultShellType, + Activity: activity, + } req, err := makeAnonPostReq(ctx, TelemetryUrl, input) if err != nil { return err diff --git a/wavesrv/pkg/pcloud/pclouddata.go b/wavesrv/pkg/pcloud/pclouddata.go index 548b589cf..fc03edd55 100644 --- a/wavesrv/pkg/pcloud/pclouddata.go +++ b/wavesrv/pkg/pcloud/pclouddata.go @@ -24,6 +24,7 @@ type TelemetryInputType struct { ClientId string `json:"clientid"` CurDay string `json:"curday"` DefaultShell string `json:"defaultshell"` + AppType string `json:"apptype"` Activity []*telemetry.ActivityType `json:"activity"` }