better names

alphons <alphons@heijden.com> 15 Jan 2025, 08:57
42394c49b6594bea31018b6054f880a8e49ad2ea
2 files changed
  • RedisGui/FormMain.cs
  • RedisGui/Helper.cs
diff --git a/RedisGui/FormMain.cs b/RedisGui/FormMain.cs
index cb13c92..783ccdc 100644
--- a/RedisGui/FormMain.cs
+++ b/RedisGui/FormMain.cs
@@ -156,7 +156,7 @@ public partial class FormMain : Form
val = TimeSpan.FromMilliseconds(long.Parse(val) / 10000).ToString();
break;
case "data":
- if (val.StartsWith('{') && val.EndsWith('}'))
+ if (val.StartsWith('{') && val.EndsWith('}')) // and [] ??
this.txtData.Text = Helper.PrettyPrintJson(val);
if (val[0] == 0x02)
{
diff --git a/RedisGui/Helper.cs b/RedisGui/Helper.cs
index 90b9104..b749b41 100644
--- a/RedisGui/Helper.cs
+++ b/RedisGui/Helper.cs
@@ -64,8 +64,8 @@ public class Helper
var guid = ReadGuid(b, ref index);
lv.Items.Add(new ListViewItem(["Version", version]));
- lv.Items.Add(new ListViewItem(["Guid", guid.ToString()]));
- lv.Items.Add(new ListViewItem(["Keys", $"{count} (below)"]));
+ lv.Items.Add(new ListViewItem(["Session id", guid.ToString()]));
+ lv.Items.Add(new ListViewItem(["Number of keys", $"{count} (below)"]));
for (int i = 0; i < count; i++)
{