Skip to content

Commit 02c3969

Browse files
author
yb
committed
units fix
1 parent d5ad2e0 commit 02c3969

File tree

1 file changed

+6
-6
lines changed
  • platforms/kubernetes/postgres-operator/postgres

1 file changed

+6
-6
lines changed

platforms/kubernetes/postgres-operator/postgres/handle.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@
210210
"track_commit_timestamp", "unix_socket_directories", "unix_socket_group",
211211
"unix_socket_permissions", "wal_buffers", "wal_level", "wal_log_hints")
212212
units = {
213-
"Ki": 2 << 10,
214-
"Mi": 2 << 20,
215-
"Gi": 2 << 30,
216-
"Ti": 2 << 40,
217-
"Pi": 2 << 50,
218-
"Ei": 2 << 60,
213+
"Ki": 1 << 10,
214+
"Mi": 1 << 20,
215+
"Gi": 1 << 30,
216+
"Ti": 1 << 40,
217+
"Pi": 1 << 50,
218+
"Ei": 1 << 60,
219219
"K": pow(1000, 1),
220220
"M": pow(1000, 2),
221221
"G": pow(1000, 3),

0 commit comments

Comments
 (0)