Skip to contentSkip to conversation

Btrfs-progs: fix the min ticks check in print_seek_histogram

PATCH New Josef Bacik 1 participant 1 message Sep 20, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs-progs: fix the min ticks check in print_seek_histogram

Before I had been dividing by 5 but that gave me too much output so I changed it to 20 without changing the min seeks test. Fix this to avoid a divide by 0 problem. Thanks,

---
 btrfs-calc-size.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
btrfs-calc-size.c +1 -1
index ab942c6..b2c888c 100644
@@ -228,7 +228,7 @@ static void print_seek_histogram(struct root_stats *stat)
 	u64 max_seek = stat->max_seek_len;
 	int digits = 1;
 
-	if (stat->total_seeks < 5)
+	if (stat->total_seeks < 20)
 		return;
 
 	while ((max_seek /= 10))
Signature · 6 lines
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kerne