summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-08-26 12:19:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-08-26 12:19:58 +0000
commit58cfb5e88daf7bed3f5b235325eeae5f81983a21 (patch)
treec5983a05e628d0121078bd76006c651e3c901585 /storage
parentdf25abf6f2498d90498ae2f84643aa1dd61fae9b (diff)
Avoid the last usages of time(0/NULL/nullptr) in the codebase.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/tools/throttlingsim.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/src/vespa/storage/tools/throttlingsim.cpp b/storage/src/vespa/storage/tools/throttlingsim.cpp
index 97f5af3518e..52cd81c6fbd 100644
--- a/storage/src/vespa/storage/tools/throttlingsim.cpp
+++ b/storage/src/vespa/storage/tools/throttlingsim.cpp
@@ -270,7 +270,7 @@ BusyCounterBalancingClient::BusyCounterBalancingClient(Messaging& msgng, int win
void BusyCounterBalancingClient::run() {
- // int startTime = time(NULL);
+ // int startTime = fastos::time();
while (running()) {
{
@@ -456,9 +456,9 @@ ThrottlingApp::Main()
m.clients.push_back(c);
}
*/
- int timeNow = time(NULL);
+ int timeNow = fastos::time();
- while (time(NULL) - timeNow < 240) {
+ while (fastos::time() - timeNow < 240) {
m.print();
m.period.SetNow();
sleep(2);