Adding format specifier to DS spec to print out double as %.6f.

This commit is contained in:
Robin Sommer 2012-05-14 21:38:27 -07:00
parent a0575158ef
commit 00b592f933
7 changed files with 10 additions and 9 deletions

View file

@ -194,12 +194,13 @@ std::string DataSeries::GetDSOptionsForType(const threading::Field *field)
case TYPE_INTERVAL:
{
std::string s;
s += "pack_relative=\"" + std::string(field->name) + "\"";
s += "pack_relative=\"" + std::string(field->name) + "\" ";
s += "print_format=\"%.6f\" ";
if ( ! ds_use_integer_for_time )
s += " pack_scale=\"1000\" pack_scale_warn=\"no\"";
s += "pack_scale=\"1000\" pack_scale_warn=\"no\"";
else
s += string(" units=\"") + TIME_UNIT() + "\" epoch=\"unix\"";
s += string("units=\"") + TIME_UNIT() + "\" epoch=\"unix\"";
return s;
}