ui/gtk: don't try to redefine SI prefixes
commite80be993b53f27000bb2f224e9540a7c7cf04fae
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 13 Dec 2020 16:57:22 +0000 (13 17:57 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:22:42 +0000 (15 11:22 +0100)
treeaa55f8450a1e2355bdc47c0ad751bf277efc61e5
parent45240eed4f064576d589ea60ebadf3c11d7ab891
ui/gtk: don't try to redefine SI prefixes

Redefining SI prefixes is always wrong. 1s has per definition
1000ms. Remove the misnamed named constant and replace it with
a comment explaining the frequency to period conversion in two
simple steps. Now you can cancel out the unit mHz in the comment
with the implicit unit mHz in refresh_rate_millihz and see why
the implicit unit ms for update_interval remains.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20201213165724.13418-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/gtk.h
ui/gtk.c