File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -783,13 +783,13 @@ class MeasuringStream : public ModifyingStream {
783
783
// / Provides the estimated runtime in milliseconds for the indicated total
784
784
uint32_t estimatedTotalTimeFor (uint32_t totalBytes) {
785
785
if (bytesSinceBegin ()==0 ) return 0 ;
786
- return timeSinceBegin () / bytesSinceBegin () * totalBytes;
786
+ return static_cast < float >( timeSinceBegin () ) / bytesSinceBegin () * totalBytes;
787
787
}
788
788
789
789
// / Provides the estimated time from now to the end in ms
790
790
uint32_t estimatedOpenTimeFor (uint32_t totalBytes) {
791
791
if (bytesSinceBegin ()==0 ) return 0 ;
792
- return estimatedTotalTimeFor (totalBytes) -timeSinceBegin ();
792
+ return estimatedTotalTimeFor (totalBytes) - timeSinceBegin ();
793
793
}
794
794
795
795
// / Alternative update method: e.g report actual file positon: returns true if the file position was increased
You can’t perform that action at this time.
0 commit comments