mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 05:37:55 +00:00
#738 use real division and static cast (suggestion)
Co-Authored-By: spfennell <spfennell@gmail.com>
This commit is contained in:
parent
08d0ea5d40
commit
3965b87499
@ -695,7 +695,7 @@ int Trick::DataRecordGroup::write_data(bool must_write) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!max_size_warning && (total_bytes_written > max_file_size)) {
|
if(!max_size_warning && (total_bytes_written > max_file_size)) {
|
||||||
std::cerr << "WARNING: Data record max file size " << (max_file_size>>10) << "KB reached. Contact Derek Bankieris regarding any concerns.\n"
|
std::cerr << "WARNING: Data record max file size " << (static_cast<double>(max_file_size)/(1<<20) << "MB reached.\n"
|
||||||
"https://github.com/nasa/trick/wiki/Data-Record#changing-the-max-file-size-of-a-data-record-group-ascii-and-binary-only"
|
"https://github.com/nasa/trick/wiki/Data-Record#changing-the-max-file-size-of-a-data-record-group-ascii-and-binary-only"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
max_size_warning = true;
|
max_size_warning = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user