Skip to content

Commit

Permalink
Merge pull request #441 from ExpediaDotCom/duration_trends
Browse files Browse the repository at this point in the history
fixing trends duration unit
  • Loading branch information
ayansen authored Nov 30, 2018
2 parents 0b7aa74 + 8202e51 commit ef70c77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/trends/details/graphs/durationGraph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ durationChartOptions.scales.yAxes = [{
display: true,
ticks: {
callback(value) {
const formattedValue = formatters.toDurationStringFromMs(value);
const formattedValue = formatters.toDurationString(value);
if (formattedValue.length < 8) {
return `${' '.repeat(8 - formattedValue.length)}${formattedValue}`;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/trends/utils/trendSparklines.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ sparklines.CountSparkline.propTypes = {
sparklines.DurationSparkline = ({latest, points}) =>
(<div className="sparkline-container">
{ !isNaN(latest) &&
<div className="sparkline-title">latest <b>{formatters.toDurationStringFromMs(latest)}</b></div>
<div className="sparkline-title">latest <b>{formatters.toDurationString(latest)}</b></div>
}
<div className="sparkline-graph">
<Sparklines className="sparkline" data={points} min={0} height={48}>
Expand Down

0 comments on commit ef70c77

Please sign in to comment.