Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…he bytes)
  • Loading branch information...
commit d19de017418bdefd64e317c23ba860b64a31c9ed 1 parent 4dc1e0d
David authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  src/redis.c
2  src/redis.c
@@ -1890,6 +1890,8 @@ void bytesToHuman(char *s, unsigned long long n) {
1890 1890 } else if (n < (1024LL*1024*1024*1024)) {
1891 1891 d = (double)n/(1024LL*1024*1024);
1892 1892 sprintf(s,"%.2fG",d);
  1893 + } else {
  1894 + sprintf(s,"%lluB",n);
1893 1895 }
1894 1896 }
1895 1897

0 comments on commit d19de01

Please sign in to comment.
Something went wrong with that request. Please try again.