Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ActivityWatchVS/Services/EventService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -77,7 +78,7 @@ internal void Shutdown()

private static string GetBucketId(Event ev)
{
return $"{ev.Data.BucketIDCustomPart}_{Environment.MachineName}";
return $"{ev.Data.BucketIDCustomPart}_{Dns.GetHostName()}";
}

private bool MergeEventsAndOutFinishedEvent(out Event logEvent)
Expand Down Expand Up @@ -164,7 +165,7 @@ private async Task<bool> PostCreateBucketAsync(string bucket_id, string bucketTy
var awBucket = new CreateBucket()
{
Client = AWPackage.NAME_ACTIVITY_WATCHER,
Hostname = Environment.MachineName,
Hostname = Dns.GetHostName(),
Type = bucketType
};

Expand Down