minor : fix multiple definitions of to_timestamp()

pull/110/head
Georgi Gerganov 3 years ago
parent 73141a52dc
commit a4ffdb47d1
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

@ -1911,7 +1911,7 @@ whisper_vocab::id whisper_sample_timestamp(
// 500 -> 00:05.000
// 6000 -> 01:00.000
std::string to_timestamp(int64_t t, bool comma = false) {
static std::string to_timestamp(int64_t t, bool comma = false) {
int64_t msec = t * 10;
int64_t hr = msec / (1000 * 60 * 60);
msec = msec - hr * (1000 * 60 * 60);

Loading…
Cancel
Save