mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Adding format specifier to DS spec to print out double as %.6f.
This commit is contained in:
parent
a0575158ef
commit
00b592f933
7 changed files with 10 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue