Bug#992409: Updated the upstream bug : not related to locale but to print formatting

2022-06-29 Thread francois
My mistake, sorry for the previous message, irrelevant and false. 
Please ignore




Bug#992409: Updated the upstream bug : not related to locale but to print formatting

2022-06-29 Thread François Cerbelle


/usr/share/prometheus-node-exporter-collectors/smartmon.sh line 20 is :
 20   printf "%s_raw_value{%s,smart_id=\"%s\"} %e\n", $2, labels, $1,
$10 the explicitly requested format is "%e" which is the scientific
notation and not the human float notation expected by prometheus. I
think that the right fix would be to print a "%f" format, which would
work in any locale. BTW, this formatting (%e) is also used in other
places in this script, but outside of my test hardware.