Commits (1)
...@@ -1398,8 +1398,8 @@ void sbbs_t::progress(const char* text, int count, int total, int interval) ...@@ -1398,8 +1398,8 @@ void sbbs_t::progress(const char* text, int count, int total, int interval)
if(cfg.node_num == 0) if(cfg.node_num == 0)
return; // Don't output this for events return; // Don't output this for events
clock_t now = msclock(); double now = xp_timer();
if(now - last_progress < interval) if((now - last_progress) * 1000 < interval)
return; return;
if(text == NULL) text = ""; if(text == NULL) text = "";
float pct = total ? ((float)count/total)*100.0F : 100.0F; float pct = total ? ((float)count/total)*100.0F : 100.0F;
......
...@@ -848,7 +848,7 @@ public: ...@@ -848,7 +848,7 @@ public:
bool update_nodeterm(void); bool update_nodeterm(void);
int backfill(const char* str, float pct, int full_attr, int empty_attr); int backfill(const char* str, float pct, int full_attr, int empty_attr);
void progress(const char* str, int count, int total, int interval = 500); void progress(const char* str, int count, int total, int interval = 500);
clock_t last_progress = 0; double last_progress = 0;
bool saveline(void); bool saveline(void);
bool restoreline(void); bool restoreline(void);
int petscii_to_ansibbs(unsigned char); int petscii_to_ansibbs(unsigned char);
......