Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Commit

Permalink
Don't include fractional seconds in console message times (since atte…
Browse files Browse the repository at this point in the history
…mpting to do so quickly overflows the longs used by boost::posix_time)
  • Loading branch information
cstawarz committed Jun 16, 2010
1 parent 5d62c5f commit c48e63d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Console/MWMessageContainer.m
Expand Up @@ -107,7 +107,7 @@ - (NSAttributedString *)messageForConsole {


namespace bpt = boost::posix_time;
bpt::time_duration eventTime = bpt::microseconds([altTimeValue longValue]);
bpt::time_duration eventTime = bpt::seconds((long)([altTimeValue longLongValue] / 1000000LL));

NSMutableAttributedString *consoleMsg =
[[NSMutableAttributedString alloc]
Expand Down

0 comments on commit c48e63d

Please sign in to comment.