Skip to content

Commit 1c29544

Browse files
committed
removed old millis convertion
1 parent 77630c3 commit 1c29544

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/scenario.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ impl ScenarioRunner {
9191
let usernames = Rc::new(usernames(&account_ids));
9292
let friends = Rc::new(friends.clone());
9393
let incoming: ArcIncoming = Arc::default();
94-
95-
let start_millis = self.start_time as u128 * 1000;
9694
let (reg_log, den_log) = {
9795
let guard = client.lock().await;
9896
if guard.is_denim() {
@@ -103,7 +101,7 @@ impl ScenarioRunner {
103101
.username(username.clone())
104102
.usernames(usernames.clone())
105103
.msg_type(MessageType::Regular)
106-
.start_time(start_millis)
104+
.start_time(self.start_time)
107105
.tick_millis(tick_time)
108106
.stop(stop.clone())
109107
.incoming(incoming.clone())
@@ -114,7 +112,7 @@ impl ScenarioRunner {
114112
.username(username.clone())
115113
.usernames(usernames.clone())
116114
.msg_type(MessageType::Denim)
117-
.start_time(start_millis)
115+
.start_time(self.start_time)
118116
.tick_millis(tick_time)
119117
.stop(stop.clone())
120118
.incoming(incoming.clone())
@@ -128,7 +126,7 @@ impl ScenarioRunner {
128126
.username(username.clone())
129127
.usernames(usernames.clone())
130128
.msg_type(MessageType::Regular)
131-
.start_time(start_millis)
129+
.start_time(self.start_time)
132130
.tick_millis(tick_time)
133131
.stop(stop.clone())
134132
.incoming(incoming.clone())

0 commit comments

Comments
 (0)