LATENCY GRAPH implemented.

This commit is contained in:
antirez
2014-07-02 16:31:22 +02:00
parent 6f20482a86
commit aa16f87b87
4 changed files with 66 additions and 6 deletions

View File

@ -161,9 +161,8 @@ sds sparklineRenderRange(sds output, struct sequence *seq, int rows, int offset,
}
/* Turn a sequence into its ASCII representation */
sds sparklineRender(struct sequence *seq, int columns, int rows, int flags) {
sds sparklineRender(sds output, struct sequence *seq, int columns, int rows, int flags) {
int j;
sds output = sdsempty();
for (j = 0; j < seq->length; j += columns) {
int sublen = (seq->length-j) < columns ? (seq->length-j) : columns;