Skip to content

Commit f0d98ec

Browse files
committed
set preview row limit depending on available ram
1 parent 3cde541 commit f0d98ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

countess/gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
info_button,
3232
)
3333

34-
preview_row_limit: Optional[int] = 1000000
34+
preview_row_limit: Optional[int] = (psutil.virtual_memory().available/1024/1024/1024)*10000
3535

3636
usage = """usage: countess_gui [--log LEVEL] [INIFILE]
3737

0 commit comments

Comments
 (0)