This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
influx-writer
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
adds InfluxWriter::dur_nanos_u64
master
Jonathan Strong
6 years ago
parent
99047401e6
commit
a2a4de3c0f
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/influx.rs
+ 2
- 0
src/influx.rs
View File
@@ -207,6 +207,8 @@ impl InfluxWriter {
pub fn dur_nanos(&self, d: Duration) -> i64 { dur_nanos(d) as i64 }
pub fn dur_nanos_u64(&self, d: Duration) -> u64 { dur_nanos(d).max(0) as u64 }
pub fn tx(&self) -> Sender<Option<OwnedMeasurement>> {
self.tx.clone()
}
Write
Preview
Loading…
Cancel
Save