]> git.proxmox.com Git - pve-manager-legacy.git/commit
metrics: influx: preprare value: rename $quote to $force_quote
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 28 Jan 2022 10:06:25 +0000 (11:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 14 Mar 2022 09:44:20 +0000 (10:44 +0100)
commit215726a9d2cebb68a435e4b7bc826711a7d62a35
treec5fc65e12c151bec6ee0cee79597ee735e824152
parenta026eb71eec3091d200dfe703a71e1f4bc44ab10
metrics: influx: preprare value: rename $quote to $force_quote

to avoid implying that it's *only* quoted if that parameter is
truthy.

Also, check the boolean before looks_like_number call, as that is
more expensive to do.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
(cherry picked from commit b8608c53e773fad60d0008b0f1937e0cc5dd1c34)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Status/InfluxDB.pm