Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Update ScanResult.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 2, 2017
1 parent a4065ea commit 76554a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ServiceStack.Redis/ScanResult.cs
Expand Up @@ -16,7 +16,9 @@ public static List<string> AsStrings(this ScanResult result)
for (var i = 0; i < result.Results.Count; i += 2)
{
var key = result.Results[i];
var score = result.Results[i + 1].ToDouble();
var score = double.Parse(result.Results[i + 1].FromUtf8Bytes(),
NumberStyles.Float,
CultureInfo.InvariantCulture);
to[key.FromUtf8Bytes()] = score;
}
return to;
Expand All @@ -34,4 +36,4 @@ public static List<string> AsStrings(this ScanResult result)
return to;
}
}
}
}

0 comments on commit 76554a5

Please sign in to comment.