]> git.proxmox.com Git - pve-manager.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)
commit1185453a062ef43e90bba137ea49319420eb4c87
treebba366fbe2ac8abca27c08ffd998c6be953f40f6
parent6ea437b237b6bd33e2d58dcadd4a13baf76f6ae3
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