aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnome-disk-utility/exp2.patch
blob: 44998036288a409fe6056b7557fd08e8c30bfa2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- ./src/gdu-gtk/gdu-size-widget.c.orig
+++ ./src/gdu-gtk/gdu-size-widget.c
@@ -564,11 +564,11 @@
 
                 shown_extent = extent / unit_factor;
 
-                increment = (exp10 (floor (log10 (shown_extent))) / 10.0) * unit_factor;
+                increment = (exp2 (floor (log2 (shown_extent))) / 2.0) * unit_factor;
 
                 gtk_range_set_increments (GTK_RANGE (widget->priv->hscale),
                                           increment,
-                                          increment * 10.0);
+                                          increment * 2.0);
         }