Skip to content

Commit

Permalink
Update RedisController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
yswenli committed Apr 20, 2019
1 parent 87af469 commit ef98fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SAEA.WebRedisManager/Controllers/RedisController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public ActionResult GetInfo(string name, bool isCpu)
result = data.used_cpu_user.ToString();
else
{
if (int.TryParse(data.used_memory, out int used_memory))
if (long.TryParse(data.used_memory, out long used_memory))
{
result = (used_memory / 1024 / 1024).ToString();
}
Expand Down

0 comments on commit ef98fad

Please sign in to comment.