pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make minutes show as percent of hour

+2 -1
+2 -1
src/pages/TopFlix.tsx
··· 164 164 const hours = Math.floor(timeDifference / (1000 * 60 * 60)); 165 165 const minutes = Math.floor((timeDifference % (1000 * 60 * 60)) / (1000 * 60)); 166 166 const seconds = Math.floor((timeDifference % (1000 * 60)) / 1000); 167 + const percentageOfHour = Math.ceil(minutes / 60); 167 168 168 169 if (hours > 0) { 169 - return `${hours}:${minutes} hours`; 170 + return `${hours}.${percentageOfHour} hours`; 170 171 } 171 172 if (minutes > 0) { 172 173 return `${minutes} minutes`;