File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class timedelta_cls {
2626 int64_t totalseconds () const { return _usec/1000 /1000 ; }
2727 int64_t totalminutes () const { return _usec/1000 /1000 /60 ; }
2828 int64_t totalhours () const { return _usec/1000 /1000 /60 /60 ; }
29- int64_t totaldays () const { return _usec/1000000 /60 /60 /24 ; }
29+ int64_t totaldays () const { return _usec/1000 / 1000 /60 /60 /24 ; }
3030
3131 int usec () const { return _usec % 1000000 ; }
3232 int msec () const { return (_usec/1000 ) % 1000 ; }
@@ -66,7 +66,6 @@ class timedelta_cls {
6666 friend bool operator >(timedelta_cls lhs, timedelta_cls rhs) { return lhs.totalusec () > rhs.totalusec (); }
6767 friend bool operator <=(timedelta_cls lhs, timedelta_cls rhs) { return lhs.totalusec () <= rhs.totalusec (); }
6868
69-
7069};
7170
7271template <int DUMMY=0 >
You can’t perform that action at this time.
0 commit comments