#738 use real division and static cast (suggestion)

Co-Authored-By: spfennell <spfennell@gmail.com>
This commit is contained in:
dbankieris 2019-02-28 08:27:13 -06:00 committed by GitHub
parent 08d0ea5d40
commit 3965b87499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;