Permalink
Browse files

Add fall-through for bytesToHuman for very large values (just print t…

…he bytes)
  • Loading branch information...
1 parent 4dc1e0d commit d19de017418bdefd64e317c23ba860b64a31c9ed @dvdplm committed Jan 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/redis.c
View
2 src/redis.c
@@ -1890,6 +1890,8 @@ void bytesToHuman(char *s, unsigned long long n) {
} else if (n < (1024LL*1024*1024*1024)) {
d = (double)n/(1024LL*1024*1024);
sprintf(s,"%.2fG",d);
+ } else {
+ sprintf(s,"%lluB",n);
}
}

0 comments on commit d19de01

Please sign in to comment.